From: "Chris Underwood" Newsgroups: comp.os.msdos.djgpp Subject: Re: a bug? Date: Tue, 4 Jan 2000 17:01:20 -0000 Organization: Logica UK Ltd. Lines: 20 Message-ID: <84t913$7vv@romeo.logica.co.uk> References: NNTP-Posting-Host: 158.234.18.170 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dlanor Blytkerchan wrote in message ... >: for (i = 0; i < TMP_MAX; i++) printf("%d: %p\n", tmpfile()); If you're compiling that precise line of code (rather than having copied it into your post by hand), you have missed a parameter to printf for the format string you've given it. I suspect you probably meant: for (i = 0; i < TMP_MAX; i++) printf("%d: %p\n", i, tmpfile()); Missing an arguement can cause crashes in some compilers, and although I haven't tried it with DJGPP, I expect it to be no different. You should be getting a warning about format specifiers though (assuming you have warnings switched on). Chris