doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mprintf.h
Go to the documentation of this file.
1 /***************************************************************************
2  * _ _ ____ _
3  * Project ___| | | | _ \| |
4  * / __| | | | |_) | |
5  * | (__| |_| | _ <| |___
6  * \___|\___/|_| \_\_____|
7  *
8  * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
9  *
10  * This software is licensed as described in the file COPYING, which
11  * you should have received as part of this distribution. The terms
12  * are also available at http://curl.haxx.se/docs/copyright.html.
13  *
14  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15  * copies of the Software, and permit persons to whom the Software is
16  * furnished to do so, under the terms of the COPYING file.
17  *
18  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19  * KIND, either express or implied.
20  *
21  * $Id: mprintf.h,v 1.8 2004/01/07 09:19:34 bagder Exp $
22  ***************************************************************************/
23 
24 #ifndef H_MPRINTF
25 #define H_MPRINTF
26 
27 #include <stdarg.h>
28 #include <stdio.h> /* needed for FILE */
29 
30 int curl_mprintf(const char *format, ...);
31 int curl_mfprintf(FILE *fd, const char *format, ...);
32 int curl_msprintf(char *buffer, const char *format, ...);
33 int curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...);
34 int curl_mvprintf(const char *format, va_list args);
35 int curl_mvfprintf(FILE *fd, const char *format, va_list args);
36 int curl_mvsprintf(char *buffer, const char *format, va_list args);
37 int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list args);
38 char *curl_maprintf(const char *format, ...);
39 char *curl_mvaprintf(const char *format, va_list args);
40 
41 #ifdef _MPRINTF_REPLACE
42 # define printf curl_mprintf
43 # define fprintf curl_mfprintf
44 # define sprintf curl_msprintf
45 # define snprintf curl_msnprintf
46 # define vprintf curl_mvprintf
47 # define vfprintf curl_mvfprintf
48 # define vsprintf curl_mvsprintf
49 # define vsnprintf curl_mvsnprintf
50 # define aprintf curl_maprintf
51 # define vaprintf curl_mvaprintf
52 #endif
53 
54 #endif /* H_MPRINTF */
char * curl_mvaprintf(const char *format, va_list args)
Definition: mprintf.c:1078
int curl_mvprintf(const char *format, va_list args)
Definition: mprintf.c:1153
GLenum GLsizei GLenum format
Definition: glext.h:2846
int curl_mprintf(const char *format,...)
Definition: mprintf.c:1125
int curl_mfprintf(FILE *fd, const char *format,...)
Definition: mprintf.c:1135
int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list args)
Definition: mprintf.c:989
int curl_mvsprintf(char *buffer, const char *format, va_list args)
Definition: mprintf.c:1145
int curl_mvfprintf(FILE *fd, const char *format, va_list args)
Definition: mprintf.c:1158
char * curl_maprintf(const char *format,...)
Definition: mprintf.c:1052
GLuint buffer
Definition: glext.h:3108
int curl_msprintf(char *buffer, const char *format,...)
Definition: mprintf.c:1110
int curl_msnprintf(char *buffer, size_t maxlength, const char *format,...)
Definition: mprintf.c:1011