🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31506

(none)

#31506
From: Steve_Yelvington
Date: Thu, 24 Mar 1988 10:51
36 lines
1818 bytes

  Mark Fischer describes a problem with Mark Johnson C: 
 > When I assemble a program that has any input form external  
 > sorces I get this error  
 > GETC UNDEFINED.  
 > I searched the file LIB.C and GETC is used but never defined.  
 > All I need is the code that I must add to LIB.C to define GETC.  
 > Thanks for your help.  
 > Mark Fischer  
 > BITNet: mwf8191@tamvenus  
   
  Please look again. getc(s) should be fairly near the top of LIB.C,  right 
after gets(s) and getchar(). If it is indeed missing, your whole library is 
suspect and should be replaced.   
  If you discover getc(s) is defined but STILL have an error message, this may 
be the cause: 
 
  getc(s) is defined ABOVE scanf() in LIB.C! 
 
  If you are using scanf() and no other standard input, the  MJC 
assembler-linker will gallop right past getc(), ignoring it  because it is 
not (yet) needed. Then, after it assembles scanf()  and finds that it NEEDS 
getc(), it can't back up and find it. 
  Somewhere in your source file, include this statement: 
  
  if (0) getc(stdin); /* kludge: doesn't execute, but fixes the problem */ 
  
   The latest note I received from Mark Johnson indicates that  version 2.0 
will be available Real Soon Now (with many enhancements,  including floating 
point) and will be posted in the usual places.  Mark's address is: Mark A. 
Johnson, 5315 Holmes Place, Boulder, CO 80303 
 -------------- 
 Steve Yelvington@Pell (STadel) 
     uucp:   ihnp4!meccts!stag!pell!Steve_Yelvington 
     Delphi: YELVINGTON 
Technical Details
Message-ID: <361@stag.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!umn-d-ub!umn-cs!ems!pwcs!stag!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!umn-d-ub!umn-cs!ems!pwcs!stag!daemon
From: Steve_Yelvington@pell.UUCP
Newsgroups: comp.sys.atari.st
Subject: (none)
Message-ID: <361@stag.UUCP>
Date: 24 Mar 88 10:51:57 GMT
Sender: daemon@stag.UUCP
Lines: 36