From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18028 invoked by alias); 23 May 2003 18:17:58 -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 31725 invoked from network); 23 May 2003 18:09:40 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 23 May 2003 18:09:40 -0000 Received: from redhat.com (vpn50-34.rdu.redhat.com [172.16.50.34]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 5DFCE80001E for ; Fri, 23 May 2003 14:09:39 -0400 (EDT) Message-ID: <3ECE6412.7040007@redhat.com> Date: Fri, 23 May 2003 18:17: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: sid@sources.redhat.com Subject: Using vsnprintf or vasprintf in sid Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q2/txt/msg00031.txt.bz2 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