binutils-gdb/gdb/testsuite/gdb.base/args.c

13 lines
159 B
C

#include <stdio.h>
int
main (int argc, char **argv)
{
int i = 0;
printf ("%d\n", argc);
while (i < argc)
printf ("%s\n", argv[i++]);
return 0;
}