hello forum,
again i fall down onto a basic problem. i took this code from the manpage of strsep:
Code:
char **ap, *argv[10], *inputstring;
for (ap = argv; (*ap = strsep(&inputstring, " \t")) != NULL;)
if (**ap != '\0')
if (++ap >= &argv[10])
break;
adding something like:
Code:
printf("arg0:%s arg1:%s arg2:%s", argv[0],argv[1],argv[2]);
works rather great. but i wonder how to retrieve the values now saved in argv[10] from another function.
i tried something like:
Code:
int function1(char *args[10])
{
}
and later tried to access the *args[10] from the calling function with no luck
thank you for your answers,
fc