aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/args.c
blob: d564120a6074278b2af1e5a07d248079090de644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}