snprintf.h

Go to the documentation of this file.
00001 /* $XFree86: xc/lib/misc/snprintf.h,v 3.1 1996/08/26 14:42:33 dawes Exp $ */
00002 
00003 #ifndef SNPRINTF_H
00004 #define SNPRINTF_H
00005 
00006 #ifdef HAS_SNPRINTF
00007 #ifdef LIBXT
00008 #define _XtSnprintf snprintf
00009 #define _XtVsnprintf vsnprintf
00010 #endif
00011 #ifdef LIBX11
00012 #define _XSnprintf snprintf
00013 #define _XVsnprintf vsnprintf
00014 #endif
00015 #else /* !HAS_SNPRINTF */
00016 
00017 #ifdef LIBXT
00018 #define snprintf _XtSnprintf
00019 #define vsnprintf _XtVsnprintf
00020 #endif
00021 #ifdef LIBX11
00022 #define snprintf _XSnprintf
00023 #define vsnprintf _XVsnprintf
00024 #endif
00025 
00026 extern int snprintf (char *str, size_t count, const char *fmt, ...);
00027 extern int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
00028 
00029 #endif /* HAS_SNPRINTF */
00030 
00031 #endif /* SNPRINTF_H */

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1