hardcoded constants
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Dec 27 15:27:40 AEST 1988
In article <789 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
[quoting somebody:]
>>Last I heard sizeof("/") == sizeof(char *)
>I don't know who you heard that from, but I suggest you take anything
>else they have to say about C with a grain of salt; it is not true.
Actually, on at least one release of Gould's UTX-32, apparently the C
compiler maintainer decided to "fix" this and their compiler indeed
interpreted all sizeof"..." constructs as sizeof(char*). Of course we
screamed about this and it was fixed in a later release.
More information about the Comp.lang.c
mailing list