xref: /third_party/musl/src/stdio/fgetpos.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
3570af302Sopenharmony_ciint fgetpos(FILE *restrict f, fpos_t *restrict pos)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	off_t off = __ftello(f);
6570af302Sopenharmony_ci	if (off < 0) return -1;
7570af302Sopenharmony_ci	*(long long *)pos = off;
8570af302Sopenharmony_ci	return 0;
9570af302Sopenharmony_ci}
10570af302Sopenharmony_ci
11570af302Sopenharmony_ciweak_alias(fgetpos, fgetpos64);
12

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