search for: print_argv

Displaying 1 result from an estimated 1 matches for "print_argv".

Did you mean: print_area
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...of argument parser */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* strcpy() strlen() memcpy() strchr() */ #include <errno.h> /* errno; error macros */ #include <consoles.h> #include <getkey.h> #include <ctype.h> #define INS 256 void print_argv(int argc, char *argv[]) { int i; for (i = 0; i < argc; i++) { printf("%4d '%s'\n", i, argv[i]); } } /* * parse_args1: Try 1 at parsing a string to an argc/argv pair. use free_args1 to free memory malloc'd * * Derived from com32/lib/sys/argv.c:__parse_argv(...