/* vi: set sw=4 ts=4: */ /* * Test application for argc and argv handling * Copyright (C) 2000-2006 by Erik Andersen * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include #include #include int main(int argc, char **argv) { int i=0; char** index=environ; #ifdef __powerpc__ { unsigned long sp; sp = (unsigned long) __builtin_frame_address(0); if(sp&0xf){ printf("stack pointer is unaligned! (%08lx)\n", sp); } } #endif printf("argc=%d\n", argc); for(i=0;i