1N/A * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * Copyright (c) 1990, 1993 1N/A * The Regents of the University of California. All rights reserved. 1N/A * This code is derived from software contributed to Berkeley by 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A** SM_VSNPRINTF -- format data for "output" into a string 1N/A** Assigned 'str' to a "fake" file pointer. This allows common 1N/A** o/p formatting function sm_vprintf() to be used. 1N/A** str -- location for output 1N/A** n -- maximum size for o/p 1N/A** fmt -- format directives 1N/A** ap -- data unit vectors for use by 'fmt' 1N/A** result from sm_io_vfprintf() 1N/A** Limits the size ('n') to INT_MAX. 1N/A /* While snprintf(3) specifies size_t stdio uses an int internally */ 1N/A /* Stdio internals do not deal correctly with zero length buffer */