[Top][All Lists]

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

Re: check for C99-compliant snprintf

From: Paul Eggert
Subject: Re: check for C99-compliant snprintf
Date: Thu, 15 Feb 2007 22:34:36 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

It's a bit of a pain that this will reject all cross-compiled snprintfs.
Is there some way you can test for this at compile-time?

Does the nonstandard snprintf have exactly the same signature as the
C99 snprintf?  If not, we should be able to catch this at

Does the nonstandard implementation have a vsnprintf?  If not, we
could test for that at link-time and cross-compiles wouldn't have to
substitute snprintf except on clearly pre-C99 systems.

Basically, I'm looking for any way we can distinguish the nonstandard
implementation without running it.

reply via email to

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