Displaying 1 result from an estimated 1 matches for "argcat".
Did you mean:
arccat
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...ee_args1(char ***argv)
{
char *s;
s = **argv;
free(*argv);
free(s);
}
/* Concatenate command line arguments into one string
* str Output character array
* strl Size of array
* argc Argument Count
* argv Argument Values
* returns Length of output string (like strlen())
*/
int argcat(char *str, const int strl, const int argc, char *argv[])
{
int i, arglen; /* index, argument length */
int curpos, maxlen = strl - 1; /* current position in str */
curpos = 0;
str[0] = '\0'; /* Nullify string just to be sure */
for (i = 0; i < argc; i++) {
arglen...