Re: Using vsnprintf or vasprintf in sid

Dave Brolley <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.