Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

*printf and zero size


  • From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
  • Subject: *printf and zero size
  • Date: Mon, 5 Dec 2005 15:44:51 -0500 (EST)
  • Message-id: <200512052044.jB5Kip216855@candle.pha.pa.us> <text/plain>

Tom, did you implement this functionality in *printf?

	The size may be given as zero to find out how many characters are
	needed; in this case, the str argument is ignored. Sprintf() and
	vsprintf() 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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group