Path: utzoo!utgpu!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: scanf/printf Message-ID: <8901070119.AA03699@postgres.Berkeley.EDU> Date: 7 Jan 89 01:19:31 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 17 Oof, I must have been asleep when I wrote that ... What I meant to say was that if sizeof(int) == sizeof(long), the 'l' is superfluous as far as stdio is concerned, but since you pass pointers to variables to scanf(), you must be sure to use no qualification for &int, the l qualification for &long (scanf()ing integers), and the h qualification for &short. All of this applies to c.lib and associated libraries only. -Matt : : 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!