sizeof "string"

Jack Waugh jack at rlgvax.UUCP
Fri Jan 27 15:00:16 AEST 1984


I have seen at least one compiler (I forget which) that  gave
2  (the  size  of a pointer on that machine) as the size of a
string.  So it isn't a  reliable  portable  practice  to  use
sizeof on strings.

Jack Waugh



More information about the Comp.lang.c mailing list