args.c (275B)
1 // Copyright CC-BY-SA-4.0 2017- Haelwenn (lanodan) Monnier <contact@hacktivis.me> 2 3 // printf() 4 #include <stdio.h> 5 6 int main(int argc, char *argv[]) 7 { 8 printf("argc: %i\n", argc); 9 10 for(int i = 0; i < argc; i++) 11 { 12 printf("argv[%d]: \"%s\"\n", i, argv[i]); 13 } 14 15 return 0; 16 }