TetaTricks/code/C/arguments.c

17 lines
193 B
C
Raw Permalink Normal View History

2024-09-10 23:27:37 +11:00
/*
* afficher les arguments.
*/
#include <stdio.h>
int main(int argc, char *argv[])
{
int foo;
for (foo=0; foo<argc; foo++) {
printf(" %3d %s\n", foo, argv[foo]);
}
return 0;
}