DEV/DEV1.1/CM2/mesure.c
Simoes Lukas 59f7eead89 A
2025-01-07 15:07:12 +01:00

10 lines
194 B
C

# include <stdio.h>
# include <stdlib.h>
# include <sys/stat.h>
int main(int argc, char** argv) {
struct stat a;
stat(argv[1], &a);
printf("%jd octets\n", a.st_size);
return EXIT_SUCCESS;
}