Initial commit
This commit is contained in:
17
src/args_count.c
Normal file
17
src/args_count.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
if ( argc == 0)
|
||||
{
|
||||
printf("Le nombre d'arguments est 1 \n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Le nombre d'arguments est de : %d \n", argc);
|
||||
}
|
||||
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
17
src/args_count.c~
Normal file
17
src/args_count.c~
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
if ( argc == 0)
|
||||
{
|
||||
printf("Le nombre d'arguments est 1");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Le nombre d'arguments est de : %d", argc);
|
||||
}
|
||||
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
Reference in New Issue
Block a user