cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/04/06/19:02:02

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1+PlR5m/SWP1S73YC2HXQNXPxaHWAfolgpQmEpXfI
LyqjOSC1CYTqyZ
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Re: Implementation of [v]as[n]printf() family of functions.
Date: Mon, 7 Apr 2008 01:03:42 +0200
User-Agent: KMail/1.9.5
References: <200804062347 DOT 42980 DOT juan DOT guerrero AT gmx DOT de> <200804062219 DOT m36MJ8dK023662 AT envy DOT delorie DOT com>
In-Reply-To: <200804062219.m36MJ8dK023662@envy.delorie.com>
MIME-Version: 1.0
Message-Id: <200804070103.43207.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

The way to use this familiy of functions is to pass a pointer to an uninitialized
pointer of char.  These functions determinate the amount of memory required to
store the formated output and the allocate a chunk of memory (through malloc())
exactly large enough to store the formated output inclusive the trailing '\0'.
Of course it is the users reponsability to free the memory allocated by asprintf
and the other ones.

- Raw text -


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