12 lines
157 B
C
Raw Normal View History

#include <stdio.h>
long ftell(FILE* file)
{
if(!file)
{
errno = E_INVALIDPTR;
return -1L;
}
return file->filepos;
}