• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 
7 #undef __MSVCRT_VERSION__
8 #define _UCRT
9 #include <stdio.h>
10 
sprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,...)11 int __cdecl sprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN
12 {
13   __builtin_va_list ap;
14   int ret;
15   __builtin_va_start(ap, _Format);
16   ret = __stdio_common_vsprintf(UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR, _Dest, (size_t)-1, _Format, NULL, ap);
17   __builtin_va_end(ap);
18   return ret;
19 }
20 int __cdecl (*__MINGW_IMP_SYMBOL(sprintf))(char *__restrict__, const char *__restrict__, ...) = sprintf;
21