Path: blob/master/cpp/linux/curl/mprintf.h
644 views
#ifndef __CURL_MPRINTF_H1#define __CURL_MPRINTF_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.haxx.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22***************************************************************************/2324#include <stdarg.h>25#include <stdio.h> /* needed for FILE */26#include "curl.h" /* for CURL_EXTERN */2728#ifdef __cplusplus29extern "C" {30#endif3132CURL_EXTERN int curl_mprintf(const char *format, ...);33CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);34CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);35CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,36const char *format, ...);37CURL_EXTERN int curl_mvprintf(const char *format, va_list args);38CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);39CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);40CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,41const char *format, va_list args);42CURL_EXTERN char *curl_maprintf(const char *format, ...);43CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);4445#ifdef __cplusplus46}47#endif4849#endif /* __CURL_MPRINTF_H */505152