Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/snprintf.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* @(#)root/clib:$Id$ */
0002 /* Author: Fons Rademakers  10/12/2000 */
0003 
0004 /*
0005    Write formatted text to buffer 'string', using format string 'format'.
0006    Returns number of characters written, or -1 if truncated.
0007    Format string is understood as defined in ANSI C.
0008 */
0009 
0010 #ifndef ROOT_snprintf
0011 #define ROOT_snprintf
0012 
0013 #include <ROOT/RConfig.hxx>
0014 #include <stdio.h>
0015 #ifdef NEED_SNPRINTF
0016 
0017 #include <stdarg.h>
0018 
0019 #ifdef __cplusplus
0020 extern "C" {
0021 #endif
0022 
0023 #ifdef WIN32
0024 #pragma warning( push )
0025 #pragma warning (disable: 4273)
0026 #endif
0027 
0028 #ifndef DONTNEED_VSNPRINTF
0029 int vsnprintf(char *string, size_t length, const char *format, va_list args);
0030 #endif
0031 int snprintf(char *string, size_t length, const char *format, ...);
0032 
0033 #ifdef WIN32
0034 #pragma warning( pop )
0035 #endif
0036 
0037 #ifdef __cplusplus
0038 }
0039 #endif
0040 
0041 #endif /* NEED_SNPRINTF */
0042 
0043 #endif /* ROOT_snprintf */