C structs & A question about octet
Henry Spencer
henry at utzoo.UUCP
Sat Nov 8 05:32:55 AEST 1986
> Is there any spec that a puts() should a \n at the end of everything? My
> Microsoft 4.0 compiler does it, and I can't find any reference that describes
> puts() doing something like that in K&R. Is this a new standard?
No, it's an extremely old one. You won't find puts() (or its friend gets())
in K&R at all -- they are too old and too thoroughly obsolete. Try using
fputs(), which is the modern equivalent (and does not add a newline).
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,decvax,pyramid}!utzoo!henry
More information about the Comp.lang.c
mailing list