/*1* C99-compatible snprintf() and vsnprintf() implementations2* Copyright (c) 2012 Ronald S. Bultje <[email protected]>3*4* This file is part of FFmpeg.5*6* FFmpeg is free software; you can redistribute it and/or7* modify it under the terms of the GNU Lesser General Public8* License as published by the Free Software Foundation; either9* version 2.1 of the License, or (at your option) any later version.10*11* FFmpeg is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU14* Lesser General Public License for more details.15*16* You should have received a copy of the GNU Lesser General Public17* License along with FFmpeg; if not, write to the Free Software18* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19*/2021#ifndef COMPAT_MSVCRT_SNPRINTF_H22#define COMPAT_MSVCRT_SNPRINTF_H2324#include <stdarg.h>25#include <stdio.h>2627int avpriv_snprintf(char *s, size_t n, const char *fmt, ...);28int avpriv_vsnprintf(char *s, size_t n, const char *fmt, va_list ap);2930#undef snprintf31#undef _snprintf32#undef vsnprintf33#define snprintf avpriv_snprintf34#define _snprintf avpriv_snprintf35#define vsnprintf avpriv_vsnprintf3637#endif /* COMPAT_MSVCRT_SNPRINTF_H */383940