Logo ROOT  
Reference Guide
snprintf.h
Go to the documentation of this file.
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#include <ROOT/RConfig.hxx>
14#include <stdio.h>
15#ifdef NEED_SNPRINTF
16
17#include <stdarg.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#ifdef WIN32
24#pragma warning( push )
25#pragma warning (disable: 4273)
26#endif
27
28#ifndef DONTNEED_VSNPRINTF
29int vsnprintf(char *string, size_t length, const char *format, va_list args);
30#endif
31int snprintf(char *string, size_t length, const char *format, ...);
32
33#ifdef WIN32
34#pragma warning( pop )
35#endif
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* NEED_SNPRINTF */
42
43#endif /* ROOT_snprintf */
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
#define snprintf
Definition civetweb.c:1579