From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14362 invoked by alias); 26 May 2003 17:28:44 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 14330 invoked from network); 26 May 2003 17:28:44 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 26 May 2003 17:28:44 -0000 Received: from redhat.com (vpn50-36.rdu.redhat.com [172.16.50.36]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 15D218000E5; Mon, 26 May 2003 13:28:43 -0400 (EDT) Message-ID: <3ED24F16.7010805@redhat.com> Date: Mon, 26 May 2003 17:28:00 -0000 From: Dave Brolley User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Brolley Cc: sid@sources.redhat.com Subject: Re: Using vsnprintf or vasprintf in sid References: <3ECE6412.7040007@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q2/txt/msg00036.txt.bz2 Thanks Ben and Scott for your suggestions. I do need Solaris support and, as it turns out, I chose an implementation using a large buffer with overflow checking, like Scott suggested, until I can figure out how the autoconf magic works. Dave Dave Brolley wrote: > Hi, > > I have a need for printf-like printing into a buffer, however I have > no control over the input and so I don't know the size of the buffer > which will be required. It looks like vsnprintf (_ISOC99_SOURCE) or > vasprintf (_GNU_SOURCE) are what I need. Is it ok to use these > function in sid and, if so, how do I get configure to add the > necessary -Dxxxx to the sid compilations and (if necessary) specify > the library to look in? > > Thanks, > Dave >