jpayne@69
|
1 #ifndef CURLINC_MPRINTF_H
|
jpayne@69
|
2 #define CURLINC_MPRINTF_H
|
jpayne@69
|
3 /***************************************************************************
|
jpayne@69
|
4 * _ _ ____ _
|
jpayne@69
|
5 * Project ___| | | | _ \| |
|
jpayne@69
|
6 * / __| | | | |_) | |
|
jpayne@69
|
7 * | (__| |_| | _ <| |___
|
jpayne@69
|
8 * \___|\___/|_| \_\_____|
|
jpayne@69
|
9 *
|
jpayne@69
|
10 * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
jpayne@69
|
11 *
|
jpayne@69
|
12 * This software is licensed as described in the file COPYING, which
|
jpayne@69
|
13 * you should have received as part of this distribution. The terms
|
jpayne@69
|
14 * are also available at https://curl.se/docs/copyright.html.
|
jpayne@69
|
15 *
|
jpayne@69
|
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
jpayne@69
|
17 * copies of the Software, and permit persons to whom the Software is
|
jpayne@69
|
18 * furnished to do so, under the terms of the COPYING file.
|
jpayne@69
|
19 *
|
jpayne@69
|
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
jpayne@69
|
21 * KIND, either express or implied.
|
jpayne@69
|
22 *
|
jpayne@69
|
23 * SPDX-License-Identifier: curl
|
jpayne@69
|
24 *
|
jpayne@69
|
25 ***************************************************************************/
|
jpayne@69
|
26
|
jpayne@69
|
27 #include <stdarg.h>
|
jpayne@69
|
28 #include <stdio.h> /* needed for FILE */
|
jpayne@69
|
29 #include "curl.h" /* for CURL_EXTERN */
|
jpayne@69
|
30
|
jpayne@69
|
31 #ifdef __cplusplus
|
jpayne@69
|
32 extern "C" {
|
jpayne@69
|
33 #endif
|
jpayne@69
|
34
|
jpayne@69
|
35 CURL_EXTERN int curl_mprintf(const char *format, ...);
|
jpayne@69
|
36 CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
|
jpayne@69
|
37 CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
|
jpayne@69
|
38 CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
|
jpayne@69
|
39 const char *format, ...);
|
jpayne@69
|
40 CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
|
jpayne@69
|
41 CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
|
jpayne@69
|
42 CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
|
jpayne@69
|
43 CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
|
jpayne@69
|
44 const char *format, va_list args);
|
jpayne@69
|
45 CURL_EXTERN char *curl_maprintf(const char *format, ...);
|
jpayne@69
|
46 CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
|
jpayne@69
|
47
|
jpayne@69
|
48 #ifdef __cplusplus
|
jpayne@69
|
49 } /* end of extern "C" */
|
jpayne@69
|
50 #endif
|
jpayne@69
|
51
|
jpayne@69
|
52 #endif /* CURLINC_MPRINTF_H */
|