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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux