Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!POSTGRES.BERKELEY.EDU!dillon From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Examine and ExNext return codes Message-ID: <8901060429.AA23468@postgres.Berkeley.EDU> Date: 6 Jan 89 04:29:50 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 19 :In article <1088@ardent.UUCP> rap@ardent.UUCP (Rob Peck) writes: :$Actually the "l' (small L) prepending that I had done shows my early :$involvement with the Amiga OS, in that the printf built into the ROM :$(or WCS), and accessible by linking in amiga.lib first, requires :$all parameters to be longs. : :But the tools you were using (Greenhills) had ints the same size as :longs anyway (32 bit), so wasn't the l unnecessary? Right, if integers are 32 bits (sizeof(int) == 4), then the l does not matter at all. (scanf() uses a different character and in that case it *is* needed). However, if you intend your source to compile on either type of compiler you had better get those l's straight! I found this out the hard way one day porting a small use-only-stdio program to an IBM-PC. Except for the cooked/raw I/O problem, my incorrect use or non-use of 'l' in the printfs made for some fun debugging sessions! -Matt