Displaying 1 result from an estimated 1 matches for "parse_args1".
Did you mean:
parse_args
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...<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()
* Copyright 2004-2009 H. Peter Anvin - All Rights Reserved
* Copyright 2009 Intel Corporation; author: H. Peter Anvin
*/
int parse_args1(char **...