so I haven't done C in about 3 years, so I was wondering if I could get a bit of help.
I need to make a function that returns a "char **" type. in my function I have
char[size] result;
// fill the array with stuff
return &result;
I seem to remember that the array's first element is a pointer, so this should return the pointer to that? or is my memory failing me?
I need to make a function that returns a "char **" type. in my function I have
char[size] result;
// fill the array with stuff
return &result;
I seem to remember that the array's first element is a pointer, so this should return the pointer to that? or is my memory failing me?