-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Request to http://en.cppreference.com/w/c/string/byte/strlen with strlen function
int main(void) {
const char str[] = "How many characters does this string contain?";
В
printf("without null character:В %zu\n", strlen(str));
printf("with null character: В %zu\n", sizeof str);
В
printf("without null character:В %zu\n", strnlen_s(str, sizeof str));
}