This repository has been archived on 2019-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
s6-pa-tp/TP2/ldc.c
2017-02-16 21:54:45 +01:00

27 lines
386 B
C

/* Source Code From Laure Gonnord, modif par Walter Rudametkin */
/* À tester avec :
./ldc
./ldc toto
./ldc toto 3
...
*/
#include <stdio.h>
int main(int argc, char* argv[])
{
int i=0;
printf("Bonjour, il y a %d argument(s) à cette commande! \n",argc);
while(i<argc)
{
printf("argument %d : %s\n",i,argv[i]);
i++;
}
printf("c'est fini !\n");
return 0;
}