mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-14 02:15:53 +05:30
freadln.c: test: print input string length
This commit is contained in:
parent
9296a74fb9
commit
8a3e4ba31f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user