Autoconf Archive Macros by Category
Search:

ac_func_snprintf

Obsolete Macro

Renamed to AX_FUNC_SNPRINTF

SYNOPSIS

AC_FUNC_SNPRINTF

DESCRIPTION

Checks for a fully C99 compliant snprintf, in particular checks whether it does bounds checking and returns the correct string length; does the same check for vsnprintf. If no working snprintf or vsnprintf is found, request a replacement and warn the user about it. Note: the mentioned replacement is freely available and may be used in any project regardless of it's license.

SOURCE CODE

Download ac_func_snprintf.m4 or browse the revision history.

LICENSE

Copyright © 2008 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.