snprintf.h

Go to the documentation of this file.
00001 /* @(#)root/clib:$Id: snprintf.h 36336 2010-10-13 13:42:06Z rdm $ */
00002 /* Author: Fons Rademakers  10/12/2000 */
00003 
00004 /*
00005    Write formatted text to buffer 'string', using format string 'format'.
00006    Returns number of characters written, or -1 if truncated.
00007    Format string is understood as defined in ANSI C.
00008 */
00009 
00010 #ifndef ROOT_snprintf
00011 #define ROOT_snprintf
00012 
00013 #ifndef ROOT_RConfig
00014 #include "RConfig.h"
00015 #endif
00016 
00017 #ifndef __CINT__
00018 
00019 #ifdef NEED_SNPRINTF
00020 
00021 #include <stdio.h>
00022 #include <stdarg.h>
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 #ifdef WIN32
00029 #pragma warning( push )
00030 #pragma warning (disable: 4273)
00031 #endif
00032 
00033 #ifndef DONTNEED_VSNPRINTF
00034 int vsnprintf(char *string, size_t length, const char *format, va_list args);
00035 #endif
00036 int snprintf(char *string, size_t length, const char *format, ...);
00037 
00038 #ifdef WIN32
00039 #pragma warning( pop )
00040 #endif
00041 
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045 
00046 #endif /* NEED_SNPRINTF */
00047 
00048 #else
00049 
00050 int snprintf(char *string, size_t length, const char *format, ...);
00051 
00052 #endif /* __CINT__ */
00053 
00054 #endif /* ROOT_snprintf */

Generated on Tue Jul 5 14:11:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1