1 /*************************************************************************
3 * $Id: mprintf.h,v 1.1.1.1 1999-12-29 14:21:15 bagder Exp $
5 * The contents of this file are subject to the Mozilla Public License
6 * Version 1.0 (the "License"); you may not use this file except in
7 * compliance with the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS"
11 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12 * the License for the specific language governing rights and limitations
15 * The Original Code is Triacle.
17 * The Initial Developers of the Original Code are Bjorn Reese and
20 * Portions created by Initial Developers are
22 * Copyright (C) 1998 Bjorn Reese and Daniel Stenberg.
23 * All Rights Reserved.
27 *************************************************************************
29 * Preliminary documentation
33 * conversion ::= '%%' | '%' [position] ( number | float | string )
34 * position ::= digits '$'
35 * number ::= [number-flags] ( 'd' | 'i' | 'o' | 'x' | 'X' | 'u')
36 * number-flags ::= 'h' | 'l' | 'L' ...
37 * float ::= [float-flags] ( 'f' | 'e' | 'E' | 'g' | 'G' )
38 * string ::= [string-flags] 's'
39 * string-flags ::= padding | '#'
64 ************************************************************************/
71 int mprintf(const char *format
, ...);
72 int mfprintf(FILE *fd
, const char *format
, ...);
73 int msprintf(char *buffer
, const char *format
, ...);
74 int msnprintf(char *buffer
, size_t maxlength
, const char *format
, ...);
75 int mvprintf(const char *format
, va_list args
);
76 int mvfprintf(FILE *fd
, const char *format
, va_list args
);
77 int mvsprintf(char *buffer
, const char *format
, va_list args
);
78 int mvsnprintf(char *buffer
, size_t maxlength
, const char *format
, va_list args
);
79 char *maprintf(const char *format
, ...);
80 char *mvaprintf(const char *format
, va_list args
);
82 #ifdef _MPRINTF_REPLACE
83 # define printf mprintf
84 # define fprintf mfprintf
85 # define sprintf msprintf
86 # define snprintf msnprintf
87 # define vprintf mvprintf
88 # define vfprintf mvfprintf
89 # define vsprintf mvsprintf
90 # define vsnprintf mvsnprintf
93 #endif /* H_MPRINTF */