Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!cpsc.ucalgary.ca!news
From: roseman@cs-sun-fsa.cpsc.ucalgary.ca (Mark Roseman)
Subject: Think C - reading from stdin
Message-ID: <1991May2.182034.9788@cpsc.ucalgary.ca>
Originator: roseman@fsd
Nntp-Posting-Host: fsd
Organization: U. of Calgary Computer Science
Date: Thu, 2 May 91 18:20:34 GMT

this seems fairly strange; i've got a short driver program for some
routines i'm writing.  all it does is a series of printf/fgets calls
to get some initial settings from the user.

however, it appears there's tons of null characters in the buffer
already, as my fgets calls just return null strings.  i've tried
fflush and that doesn't work.

the source works ok on our unix box here...  am i missing any initialization
routines (i'm not doing any of the toolbox init calls)?  i'm linking in
the library "ANSI" on top of MacTraps.


-- 
==============================================================================
Mark Roseman
Dept. of Computer Science, University of Calgary, Calgary, Alta.  T2N 1N4
(403) 220-5769   roseman@cpsc.ucalgary.ca    {ubc-cs|alberta}!calgary!roseman
