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