[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Bug Report: -a overflow

From: David Olofson
Subject: Re: [fluid-dev] Bug Report: -a overflow
Date: Wed, 9 Feb 2005 09:37:29 +0100
User-agent: KMail/1.7

On Wednesday 09 February 2005 09.00, Josh Green wrote:
> I was tempted to just
> stick vsnprintf in there instead to limit the max length of error
> output, but then recalled that this function might not be available
> on all platforms.  Can anyone confirm or deny this for platforms
> other than Linux?  (Windows and Mac OS X in particular).

I'm using it in Kobo Deluxe, which runs on some 10+ platforms.

However, certain confused people had this great idea of renaming it 
_vsnprintf, since it wasn't in ISO/ANSI C before C99, so:

#error  Must have vsnprintf() or _vsnprintf!
#define vsnprintf _vsnprintf

(HAVE_* stuff from GNU autoconf, but I guess you could just include 
stdio.h and stdarg.h and see if either one's defined after that, for 
other build systems.)

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]