"char *" diff in header & func arg list?

kourama kourama@teksavvy.com
Mon Mar 26 23:40:00 GMT 2007




John Love-Jensen wrote:
> 
> Why?  Because an array of characters is not a pointer to an array of
> characters.  The declaration does not match the definition.
> 

Ah, of course. I was effectly casting the array to a pointer type in the
extern declaration.

Thanks.

Honestly, am I dim or is that a subtle "gotcha"?

eh...don't answer that.
-- 
View this message in context: http://www.nabble.com/%22char-*%22-diff-in-header---func-arg-list--tf3468423.html#a9678711
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list