Hi all,
can anyone tell me if there are any restrictions on the 'types' that can be returned from within a function? i.e. (int, float, vector, ect.)
Yes, i have already posted another thread on the same subject, but what i need to know is how i can return an array if characters (char *) from a function.
I have tried the prototype .. char* myFunc(void); .. to no avail. Please, please, please can someone point me in the right direction.
Thanks in advance,
regards,
J@yb0t
Appologies for reposting this tread - thought it might benifit from being re-worded.
"Always know what you say, but don't always say what you know!"
can anyone tell me if there are any restrictions on the 'types' that can be returned from within a function? i.e. (int, float, vector, ect.)
Yes, i have already posted another thread on the same subject, but what i need to know is how i can return an array if characters (char *) from a function.
I have tried the prototype .. char* myFunc(void); .. to no avail. Please, please, please can someone point me in the right direction.
Thanks in advance,
regards,
J@yb0t
Appologies for reposting this tread - thought it might benifit from being re-worded.
"Always know what you say, but don't always say what you know!"