Article View: comp.sys.mac
Article #22532stdio bug in LSC
From: edmoy
Date: Fri, 04 Dec 1987 22:09
Date: Fri, 04 Dec 1987 22:09
32 lines
1268 bytes
1268 bytes
Here one that really slipped through the crack.
*** program 1 ***
#include <stdio.h>
main()
{
printf("Hello, Macintosh\n");
}
*** program 2 ***
#include <stdio.h>
main()
{
fputs("Hello, Macintosh\n", stdout);
}
*****************
The printf() works fine, popping up a console window and everything, but the
fputs() doesn't do anything. Notice that adding a printf() before the fputs()
will result in both printing correctly (sounds like fputs() isn't doing
the right console window initialization).
(I'm using LSC 2.13 and the new stdio library posted a while back).
Edward Moy
Academic Computing Services
University of California
Berkeley, CA 94720
edmoy@violet.Berkeley.EDU
ucbvax!violet!edmoy
Technical Details
Message-ID:
<6179@jade.BERKELEY.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!violet.berkeley.edu!edmoyShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!violet.berkeley.edu!edmoy From: edmoy@violet.berkeley.edu Newsgroups: comp.sys.mac Subject: stdio bug in LSC Message-ID: <6179@jade.BERKELEY.EDU> Date: Fri, 4-Dec-87 17:09:59 EST Article-I.D.: jade.6179 Posted: Fri Dec 4 17:09:59 1987 Date-Received: Wed, 9-Dec-87 06:58:24 EST Sender: usenet@jade.BERKELEY.EDU Reply-To: edmoy@violet.berkeley.edu () Organization: University of California, Berkeley Lines: 32