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



LinkBack URL
About LinkBacks




