extern declaration inconsistency

Doug Gwyn gwyn at brl-vgr.ARPA
Wed Apr 4 21:16:35 AEST 1984


The compiler is just fine.  You are confusing a char[] with a char *.
They are NOT the same thing (try printing their sizeofs, for example).

P.S.  "lint" would have caught this.
P.P.S.  You shouldn't print a (char *) with an int format specifier
unless you cast the (char *) to an int.  "lint" will NOT catch this,
although "Safe C" is supposed to.



More information about the Comp.lang.c mailing list