2000-08-11 21:53:56 +00:00
|
|
|
/*
|
|
|
|
* fgetpos.c
|
|
|
|
*
|
|
|
|
* Christian Groessler, 07-Aug-2000
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2003-11-06 18:04:07 +00:00
|
|
|
|
2000-08-11 21:53:56 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
2003-11-06 18:04:07 +00:00
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/* Code */
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int __fastcall__ fgetpos (FILE* f, fpos_t* pos)
|
2000-08-11 21:53:56 +00:00
|
|
|
{
|
|
|
|
*pos = ftell (f);
|
|
|
|
|
|
|
|
if (*pos != -1)
|
|
|
|
return 0;
|
2003-11-06 18:04:07 +00:00
|
|
|
return -1;
|
2000-08-11 21:53:56 +00:00
|
|
|
}
|
|
|
|
|