1    	/* @(#)root/clib:$Id$ */
2    	/* Author: Fons Rademakers  10/12/2000 */
3    	
4    	/*
5    	   Write formatted text to buffer 'string', using format string 'format'.
6    	   Returns number of characters written, or -1 if truncated.
7    	   Format string is understood as defined in ANSI C.
8    	*/
9    	
10   	#ifndef ROOT_snprintf
11   	#define ROOT_snprintf
12   	
13   	#ifndef ROOT_RConfig
14   	#include "RConfig.h"
15   	#endif
16   	
17   	#ifndef __CINT__
18   	
19   	#ifdef NEED_SNPRINTF
20   	
21   	#include <stdio.h>
22   	#include <stdarg.h>
23   	
24   	#ifdef __cplusplus
25   	extern "C" {
26   	#endif
27   	
28   	#ifdef WIN32
29   	#pragma warning( push )
30   	#pragma warning (disable: 4273)
31   	#endif
32   	
33   	#ifndef DONTNEED_VSNPRINTF
34   	int vsnprintf(char *string, size_t length, const char *format, va_list args);
35   	#endif
36   	int snprintf(char *string, size_t length, const char *format, ...);
37   	
38   	#ifdef WIN32
39   	#pragma warning( pop )
40   	#endif
41   	
42   	#ifdef __cplusplus
43   	}
44   	#endif
45   	
46   	#endif /* NEED_SNPRINTF */
47   	
48   	#else
49   	
50   	int snprintf(char *string, size_t length, const char *format, ...);
51   	
52   	#endif /* __CINT__ */
53   	
54   	#endif /* ROOT_snprintf */
55