build-mac/curl/mprintf.h
changeset 340 ff99a398d872
child 531 a7cc26cc39f2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build-mac/curl/mprintf.h	Mon Aug 24 17:23:37 2015 +0200
     1.3 @@ -0,0 +1,74 @@
     1.4 +#ifndef __CURL_MPRINTF_H
     1.5 +#define __CURL_MPRINTF_H
     1.6 +/***************************************************************************
     1.7 + *                                  _   _ ____  _
     1.8 + *  Project                     ___| | | |  _ \| |
     1.9 + *                             / __| | | | |_) | |
    1.10 + *                            | (__| |_| |  _ <| |___
    1.11 + *                             \___|\___/|_| \_\_____|
    1.12 + *
    1.13 + * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
    1.14 + *
    1.15 + * This software is licensed as described in the file COPYING, which
    1.16 + * you should have received as part of this distribution. The terms
    1.17 + * are also available at http://curl.haxx.se/docs/copyright.html.
    1.18 + *
    1.19 + * You may opt to use, copy, modify, merge, publish, distribute and/or sell
    1.20 + * copies of the Software, and permit persons to whom the Software is
    1.21 + * furnished to do so, under the terms of the COPYING file.
    1.22 + *
    1.23 + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
    1.24 + * KIND, either express or implied.
    1.25 + *
    1.26 + ***************************************************************************/
    1.27 +
    1.28 +#include <stdarg.h>
    1.29 +#include <stdio.h> /* needed for FILE */
    1.30 +
    1.31 +#include "curl.h"
    1.32 +
    1.33 +#ifdef  __cplusplus
    1.34 +extern "C" {
    1.35 +#endif
    1.36 +
    1.37 +CURL_EXTERN int curl_mprintf(const char *format, ...);
    1.38 +CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
    1.39 +CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
    1.40 +CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
    1.41 +                               const char *format, ...);
    1.42 +CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
    1.43 +CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
    1.44 +CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
    1.45 +CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
    1.46 +                                const char *format, va_list args);
    1.47 +CURL_EXTERN char *curl_maprintf(const char *format, ...);
    1.48 +CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
    1.49 +
    1.50 +#ifdef _MPRINTF_REPLACE
    1.51 +# undef printf
    1.52 +# undef fprintf
    1.53 +# undef sprintf
    1.54 +# undef vsprintf
    1.55 +# undef snprintf
    1.56 +# undef vprintf
    1.57 +# undef vfprintf
    1.58 +# undef vsnprintf
    1.59 +# undef aprintf
    1.60 +# undef vaprintf
    1.61 +# define printf curl_mprintf
    1.62 +# define fprintf curl_mfprintf
    1.63 +# define sprintf curl_msprintf
    1.64 +# define vsprintf curl_mvsprintf
    1.65 +# define snprintf curl_msnprintf
    1.66 +# define vprintf curl_mvprintf
    1.67 +# define vfprintf curl_mvfprintf
    1.68 +# define vsnprintf curl_mvsnprintf
    1.69 +# define aprintf curl_maprintf
    1.70 +# define vaprintf curl_mvaprintf
    1.71 +#endif
    1.72 +
    1.73 +#ifdef  __cplusplus
    1.74 +}
    1.75 +#endif
    1.76 +
    1.77 +#endif /* __CURL_MPRINTF_H */