Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!ames!oliveb!felix!zemon From: zemon@felix.UUCP (Art Zemon) Newsgroups: comp.os.minix Subject: puts(3) bug -- with fix Message-ID: <2780@felix.UUCP> Date: Mon, 18-May-87 20:03:18 EDT Article-I.D.: felix.2780 Posted: Mon May 18 20:03:18 1987 Date-Received: Wed, 20-May-87 01:29:15 EDT Reply-To: zemon@felix.UUCP (Art Zemon) Distribution: world Organization: FileNet Corp., Costa Mesa, CA Lines: 19 puts(3) does not add a newline ('\n') to the string and it should. Change the definition of puts in /usr/include/stdio.h from fputs(s, stdout); to { fputs(s, stdout); putchar('\n'); } Although I agree that it makes more sense for puts and fputs to behave similarly, I have too many programs already written which depend on "correct" behavior of puts. -- -- Art Zemon FileNet Corporation Costa Mesa, California ...!hplabs!felix!zemon