/* @(#)root/clib:$Name: $:$Id: snprintf.h,v 1.2 2002/07/09 15:29:54 rdm Exp $ */
/* Author: Fons Rademakers 10/12/2000 */
/*
Write formatted text to buffer 'string', using format string 'format'.
Returns number of characters written, or -1 if truncated.
Format string is understood as defined in ANSI C.
*/
#ifndef ROOT_snprintf
#define ROOT_snprintf
#ifndef ROOT_RConfig
#include "RConfig.h"
#endif
#ifdef NEED_SNPRINTF
#include <stdio.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
int vsnprintf(char *string, size_t length, const char *format, va_list args);
int snprintf(char *string, size_t length, const char *format, ...);
#ifdef __cplusplus
}
#endif
#endif /* NEED_SNPRINTF */
#endif /* ROOT_snprintf */
syntax highlighted by Code2HTML, v. 0.9.1