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

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