Include the Right Header
You have already used #include to make library declarations available. It is a preprocessing directive, handled before ordinary C compilation, rather than a statement executed inside main. Unlike a C statement, the directive has no trailing semicolon.
The label desk needs the length of a tag. The preprocessor handles #include <string.h> before compilation, making the declaration of strlen available. <stdio.h> declares printf, and %zu matches the size_t returned by strlen.
#include <stdio.h>
#include <string.h>
int main(void) {
const char *tag = "Tools";
printf("Tag length: %zu\n", strlen(tag));
return 0;
}
Run and check Tag length: 5. strlen counts characters before the terminating null character, not including it. With "Kit", the count would be 3.
Including a header makes its declarations available; it does not by itself copy a library's compiled function bodies into your source. Angle brackets, as in <string.h>, use the implementation's header search rules. A quoted include such as #include "records.h" uses a different search, commonly starting near the source file, for a header in your own project.
These exercises keep all your own code in main.c; they do not need a second source file. For local practice, compile this file as C, for example with clang -std=c11 -Wall -Wextra -Wpedantic main.c -o program. Do not use the C++ driver clang++ for these examples.