2007-10-15 11:42:17 +02:00
|
|
|
#include <stdio.h>
|
2006-09-07 16:14:53 +02:00
|
|
|
long ftell(FILE* file)
|
|
|
|
{
|
2016-05-19 14:15:22 +02:00
|
|
|
if(!file)
|
|
|
|
{
|
|
|
|
errno = E_INVALIDPTR;
|
|
|
|
return -1L;
|
|
|
|
}
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
return file->filepos;
|
2016-05-19 14:15:22 +02:00
|
|
|
}
|