Skip to content

Commit e79b35b

Browse files
committed
Fix warnings and errors
1 parent 856018d commit e79b35b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

archive/c/c/factorial.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <errno.h>
2+
#include <inttypes.h>
23
#include <limits.h>
34
#include <stdint.h>
45
#include <stdio.h>
@@ -52,7 +53,7 @@ int main(int argc, char *argv[])
5253
}
5354

5455
/* Print result */
55-
printf("%llu\n", result);
56+
printf("%" PRIu64 "\n", result);
5657

5758
return 0;
5859
}

archive/c/c/file-input-output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define _POSIX_C_SOURCE 200809L
12
#include <stdio.h>
23
#include <stdlib.h>
34

0 commit comments

Comments
 (0)