search for: free_args1

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

Did you mean: free_args
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
....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() * Copyright 2004-2009 H. Peter Anvin - All Rights Reserved * Copyright 2009 Intel Corporation; author: H. Peter Anvin */ int parse_args1(char ***iargv, const char *istr) { int argc = 0; const char *p;...