aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/stdio/ucrt__snscanf.c
blob: bd9dfdd38362aa8717b40c78f3bbe7f439b84c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */

#undef __MSVCRT_VERSION__
#define _UCRT
#include <stdio.h>
#include <stdarg.h>

int __cdecl _snscanf(const char * __restrict__ _Src, size_t _MaxCount, const char * __restrict__ _Format, ...)
{
  int ret;
  va_list _ArgList;
  va_start(_ArgList, _Format);
  ret = __stdio_common_vsscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS, _Src, _MaxCount, _Format, NULL, _ArgList);
  va_end(_ArgList);
  return ret;
}