jpayne@69: #ifndef CURLINC_MPRINTF_H jpayne@69: #define CURLINC_MPRINTF_H jpayne@69: /*************************************************************************** jpayne@69: * _ _ ____ _ jpayne@69: * Project ___| | | | _ \| | jpayne@69: * / __| | | | |_) | | jpayne@69: * | (__| |_| | _ <| |___ jpayne@69: * \___|\___/|_| \_\_____| jpayne@69: * jpayne@69: * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. jpayne@69: * jpayne@69: * This software is licensed as described in the file COPYING, which jpayne@69: * you should have received as part of this distribution. The terms jpayne@69: * are also available at https://curl.se/docs/copyright.html. jpayne@69: * jpayne@69: * You may opt to use, copy, modify, merge, publish, distribute and/or sell jpayne@69: * copies of the Software, and permit persons to whom the Software is jpayne@69: * furnished to do so, under the terms of the COPYING file. jpayne@69: * jpayne@69: * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY jpayne@69: * KIND, either express or implied. jpayne@69: * jpayne@69: * SPDX-License-Identifier: curl jpayne@69: * jpayne@69: ***************************************************************************/ jpayne@69: jpayne@69: #include jpayne@69: #include /* needed for FILE */ jpayne@69: #include "curl.h" /* for CURL_EXTERN */ jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: CURL_EXTERN int curl_mprintf(const char *format, ...); jpayne@69: CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); jpayne@69: CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); jpayne@69: CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength, jpayne@69: const char *format, ...); jpayne@69: CURL_EXTERN int curl_mvprintf(const char *format, va_list args); jpayne@69: CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args); jpayne@69: CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args); jpayne@69: CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength, jpayne@69: const char *format, va_list args); jpayne@69: CURL_EXTERN char *curl_maprintf(const char *format, ...); jpayne@69: CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } /* end of extern "C" */ jpayne@69: #endif jpayne@69: jpayne@69: #endif /* CURLINC_MPRINTF_H */