*printf and zero size - Mailing list pgsql-hackers

From Bruce Momjian
Subject *printf and zero size
Date
Msg-id 200512052044.jB5Kip216855@candle.pha.pa.us
Whole thread Raw
Responses Re: *printf and zero size  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom, did you implement this functionality in *printf?
The size may be given as zero to find out how many characters areneeded; in this case, the str argument is ignored.
Sprintf()andvsprintf() effectively assume an infinite size.
 

Looking at the code it doesn't seem supported.  Should it be added to
the limitations comment section?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] snprintf() argument reordering not working
Next
From: Tom Lane
Date:
Subject: Re: *printf and zero size