This should be easy but I can't figure it out. I want to define an array which can be passed just like argv. Example code:
main (int argc, char *argv)
/* initialization */
void do_some_stuff (int argc, char *argv)
Now I want to call do_some_stuff from elsewhere in the program with internally defined arguments.
void some_function ()
strcpy (targv,"string1"); ++targc;
strcpy (targv,"string2"); ++targc;
do_some_stuff (targc,targv); <---- compiler gives me an incompatible pointer type warning.