fgetpos.c\stdio\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/fgetpos.c
blob: c3fa0eb0af42982153d5222a7b76e51f941e941e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "stdio_impl.h"
int fgetpos(FILE *restrict f, fpos_t *restrict pos)
{
	off_t off = __ftello(f);
	if (off < 0) return -1;
	*(off_t *)pos = off;
	return 0;
}
LFS64(fgetpos);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 12:00:14 +0000

AltStyle によって変換されたページ (->オリジナル) /