arg_test program
+ comment libncurses-dev install
This commit is contained in:
16
tests/arg_test.c
Normal file
16
tests/arg_test.c
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[], char *envp[])
|
||||
{
|
||||
int i;
|
||||
|
||||
printf("argc = %i\n", argc);
|
||||
i = 0;
|
||||
while (argv[i])
|
||||
{
|
||||
printf("argv[%i] = |%s|\n", i, argv[i]);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user