1 /* vi: set sw=4 ts=4: */
3 * Test application for argc and argv handling
5 * Copyright (C) 2000 by Lineo, inc. and Erik Andersen
6 * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
7 * Written by Erik Andersen <andersen@uclibc.org>
9 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
16 int main(int argc, char **argv)
19 char** index=__environ;
24 sp = (unsigned long) __builtin_frame_address(0);
26 printf("stack pointer is unaligned! (%08lx)\n", sp);
31 printf("argc=%d\n", argc);
34 printf("argv[%d]='%s'\n", i, argv[i]);
39 printf("environ[%d]='%s'\n", i++, *index++);