]> git.sur5r.net Git - cc65/blob - libsrc/common/fgetpos.c
Added lots of functions from time.h
[cc65] / libsrc / common / fgetpos.c
1 /*
2  * fgetpos.c
3  *
4  * Christian Groessler, 07-Aug-2000
5  */
6
7
8 #include <stdio.h>
9
10
11 int fgetpos(FILE* f, fpos_t *pos)
12 {
13     *pos = ftell (f);
14
15     if (*pos != -1)
16         return 0;
17     return 1;
18 }
19