Message-ID: <3780A6E9.B37ED397@primus.com.au> From: leroy X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en,ja MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: I think I found a bug or something... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Internet Primus Cache-Post-Path: diddley.primus.com.au!unknown AT ras30 DOT ports DOT bgn DOT primus DOT com DOT au X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Lines: 22 Date: Mon, 05 Jul 1999 22:36:57 +1000 NNTP-Posting-Host: 203.134.0.92 X-Complaints-To: abuse AT telstra DOT net X-Trace: nsw.nnrp.telstra.net 931178647 203.134.0.92 (Mon, 05 Jul 1999 22:44:07 EST) NNTP-Posting-Date: Mon, 05 Jul 1999 22:44:07 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This function produces some weird results. void ErrExpected(char *string, char *reason) { fprintf(stderr, "%s(%d) Error: %s %s", filename, line_number, string, reason); exit(255); } filename and line_number are both global variables. The output I get is correct until after Error:, then i get the string (null) followed by the string. Yet, when I split the line into two fprintf()'s it worked fine. Any reasons for this? I'm using the latest DJGPP version with version 1.01 of the Pentium GCC. Cheers, leroy.