summaryrefslogtreecommitdiff
path: root/test/args/arg_test.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-29 23:12:02 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-29 23:12:02 +0000
commit087c2c4b9a83a3a9203f61490e2813f3a195caab (patch)
treef434af9ef0736d9adc8034bee9191dec115398df /test/args/arg_test.c
parentacb9062515ee49cb725df443c95cac47ec06b52d (diff)
need stdlib.h for some things
Diffstat (limited to 'test/args/arg_test.c')
-rw-r--r--test/args/arg_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/args/arg_test.c b/test/args/arg_test.c
index 830bb047c..b99f760c0 100644
--- a/test/args/arg_test.c
+++ b/test/args/arg_test.c
@@ -23,9 +23,10 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
-int main( int argc, char **argv)
+int main(int argc, char **argv)
{
int i=0;
char** index=__environ;
@@ -42,7 +43,7 @@ int main( int argc, char **argv)
fprintf(stderr, "argc=%d\n", argc);
- for(i=0;i<argc;i++){
+ for(i=0;i<argc;i++) {
fprintf(stderr, "argv[%d]='%s'\n", i, argv[i]);
}