I know you can do:
char word[100];
int maxlen = sizeof(word);
//maxlen = 100;
But when I pass the string into a function, and then try this approach, it gives me the size of a char(4 bytes).
I am of course, trying to avoid passing the length of the string as a parameter.
I have tried:
char * string_func( char *in);
And also:
char * string_func( char in[]);
The results were identical.
Any ideas?