1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-25 17:19:46 +05:30

freadln.c: test: print input string length

This commit is contained in:
Intel A80486DX2-66 2024-04-07 23:51:18 +03:00
parent 9296a74fb9
commit 8a3e4ba31f
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -143,7 +143,8 @@ int main(void) {
perror("freadln");
return EXIT_FAILURE;
}
printf("Input string: '%s'\n", line);
printf("Input string: '%s' (%" PRIuSIZE " characters)\n", line,
(SIZE_T_FORMAT) strlen(line));
// file test
#define TEST_FILE "freadln_test.txt"