summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/ftello.c
blob: d69008cf1a66fceaa977cbdfe42b265328c404d1 (plain)
1
2
3
4
5
6
7
#include <stdio.h>     // for fseek, FILE, SEEK_CUR, ftello
#include <sys/types.h> // for off_t

off_t ftello(FILE *stream)
{
	return fseek(stream, 0, SEEK_CUR);
}