delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/11/13:30:14

From: "Edd Dawson" <hotcakes AT planetquake DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <%kET9.17088$q67 DOT 14211 AT news-binary DOT blueyonder DOT co DOT uk> <1042224128 DOT 205850 AT queeg DOT ludd DOT luth DOT se> <0oNT9.5250$CZ5 DOT 4796 AT news-binary DOT blueyonder DOT co DOT uk> <3E1FE7D8 DOT 6490E6C3 AT phekda DOT freeserve DOT co DOT uk>
Subject: Re: stdarg.h problem(s)?
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <zlZT9.1287$Tp4.545@news-binary.blueyonder.co.uk>
Date: Sat, 11 Jan 2003 18:31:04 -0000
NNTP-Posting-Host: 80.192.26.95
X-Complaints-To: abuse AT blueyonder DOT co DOT uk
X-Trace: news-binary.blueyonder.co.uk 1042309599 80.192.26.95 (Sat, 11 Jan 2003 18:26:39 GMT)
NNTP-Posting-Date: Sat, 11 Jan 2003 18:26:39 GMT
Organization: blueyonder (post doesn't reflect views of blueyonder)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hey,

-snip-
> Try using vprintf instead. Instead of using:
>
>     printf(warningstring, arg_list);
>
> use:
>
>     vprintf(warningstring, arg_list);
>
> Apart from that, the code looks fine. (I haven't tried compiling it.) You
may
> want to look at this info page, if you want gcc to produce printf-style
format
> warnings:

Wonderful - that did the trick, thanks very much! :)

Edd


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019