arg2.c

Go to the documentation of this file.
00001 /* tarea.c */
00002 #include "stdarg.h"
00003 #include "routix.h"
00004 #include "string.h"
00005 
00006 int main (int argc, char **argv, char **envp)
00007 {
00008         printf("Recibí %d argumentos\n", argc);
00009         printf("Ellos son:\n");
00010         int i;
00011         for ( i=0 ; argv[i] && i<argc ; i++)
00012                 printf("Argumento %d: *%s*\n", i, argv[i]);
00013 
00014         for ( i=0 ; envp[i] && envp ; i++)
00015                 printf("Entorno %d: *%s*\n", i, envp[i]);
00016 
00017 }

Generated on Sun May 30 18:38:34 2004 for Routix OS by doxygen 1.3.6