This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: "char *" diff in header & func arg list?
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.