Test Header HTML Code

echoall

#include <stdio.h>

int main(int argc, char *argv[])
{
    int i;
    extern char **environ;
    for(i = 0; i < argc; i++)
    {
        printf("argv[%d]: %s\n", i, argv[i]);
    }
    
    /*argv[argc] is NULL according to ANSI C*/
/*
    while(*argv) 
    {
        printf("%s\n", *(argv++));
    }
*/
/*
    while(*environ)
    {
        printf("%s\n", *environ++);
    }
    */
    return 0;

}

posted on 2011-02-11 21:51  宁静的水泡  阅读(255)  评论(0编辑  收藏  举报

导航

Test Rooter HTML Code