[comp.sys.amiga] scanf/printf

dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) (01/07/89)

	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!