2000-08-11 21:53:56 +00:00
|
|
|
/*
|
2014-06-30 09:10:35 +00:00
|
|
|
** fgetpos.c
|
|
|
|
**
|
|
|
|
** Christian Groessler, 07-Aug-2000
|
|
|
|
*/
|
2000-08-11 21:53:56 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
/*****************************************************************************/
|
2013-05-09 11:56:54 +00:00
|
|
|
/* Code */
|
2003-11-06 18:04:07 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|