Xref: utzoo comp.unix.wizards:11619 comp.lang.c:13175 Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards,comp.lang.c Subject: Re: Problem with printf() Message-ID: <8660@smoke.ARPA> Date: 8 Oct 88 01:11:16 GMT References: <504@imec.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <504@imec.UUCP> croes@imec.UUCP (Kris Croes) writes: > printf("%d %f\n",i,i); /*1*/ >Some tests (e.g. printing on several lines) showed that the problem is >caused by printing the float under the "%d" format. I know that >normal people don't do such a thing, but that is no reason for printf() >to mess up the stack. (???) It wasn't printf that messed up the stack, it was you -- by not meeting the requirements for using printf. The arguments MUST match the corresponding conversion specifiers in the format string.