xref: /third_party/musl/src/stdio/fscanf.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/stdio/
1570af302Sopenharmony_ci#include <stdio.h>
2570af302Sopenharmony_ci#include <stdarg.h>
3570af302Sopenharmony_ci#ifndef __LITEOS__
4570af302Sopenharmony_ci#include "param_check.h"
5570af302Sopenharmony_ci#endif
6570af302Sopenharmony_ci
7570af302Sopenharmony_ciint fscanf(FILE *restrict f, const char *restrict fmt, ...)
8570af302Sopenharmony_ci{
9570af302Sopenharmony_ci#ifndef __LITEOS__
10570af302Sopenharmony_ci	PARAM_CHECK(f);
11570af302Sopenharmony_ci#endif
12570af302Sopenharmony_ci	int ret;
13570af302Sopenharmony_ci	va_list ap;
14570af302Sopenharmony_ci	va_start(ap, fmt);
15570af302Sopenharmony_ci	ret = vfscanf(f, fmt, ap);
16570af302Sopenharmony_ci	va_end(ap);
17570af302Sopenharmony_ci	return ret;
18570af302Sopenharmony_ci}
19570af302Sopenharmony_ci
20570af302Sopenharmony_ciweak_alias(fscanf, __isoc99_fscanf);
21

Indexes created Thu Nov 07 10:32:03 CST 2024