home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5086 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  51 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. References: <4hlmsb$eod@zeus.crosslink.net> 
  3. X-Newsreader: UMSZCo V1.1 BETA 12 (23.2.96)
  4. Mime-version: 1.0
  5. Content-Type: text/plain; charset=iso-8859-1
  6. Content-Transfer-encoding: 8BIT
  7. Path: news.tng.oche.de!tomate.tng.oche.de
  8. X-Gateway: ZCONNECT UE utomate.tng.oche.de.tomate.tng.oche.de [PolyNet zTOr V4.901 Serie: "light"]
  9. Subject: Re: simple K&R ANSI-C examples won't compile under SAS/C
  10. Date: Fri,  8 Mar 96  8:55:16 GMT
  11. Message-ID: <68771888@0humpty.tomate.tng.oche.de>
  12. From: humpty@TOMATE.TNG.OCHE.DE (Andreas Mixich)
  13.  
  14. vicky@steeds.com wrote about "Re: simple K&R ANSI-C examples won't compile under
  15. SAS/C" on "07-Mar-1996 03:58:03" at zer.COMP.SYS.AMIGA.PROGRAMMER:
  16.  
  17.  
  18. > Well, a couple things. First, you should be using "getchar()"
  19. > and "putchar()" not "GetChar()" and "PutChar()". Yes, case
  20. > matters.
  21.  
  22. Thank you, this was the reason.
  23.  
  24. sc was searching for GetChar() and did not find it in stdio.h, so I took
  25. out my XRef tool and looked up the includes, just to find it defined in
  26. alib_stdio...., so I included that one, as a bloddy beginner ;-)
  27.  
  28. > Secondly, stdio.h and clib/alib_stdio_protos.h define
  29. > different versions of the same routines. stdlib.h defines
  30. > the versions included by SAS in their c.lib... And
  31. > clib/alib_stdio_protos.h defines the versions provided
  32. > with the Amiga in amiga.lib... I usually use the SAS
  33. > routines, especially for non-Amiga specific development
  34. > (i.e. very portable software).
  35.  
  36. I understand.
  37.  
  38. > So, change the routine names to lower case, and pick
  39. > one of the include files, and try it then. Good luck!
  40.  
  41. Thank you :)
  42.  
  43. -- 
  44. Ciao, Andreas
  45. Internet: humpty@tomate.tng.oche.de
  46. FIDO    : 2:244/1544.14
  47.  
  48. +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  49. Many are called, few are chosen.  Fewer still get to do the choosing.
  50.  
  51.