]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/fgetpos.c
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / fgetpos.c
index ae4b8c1708f821ce4f18d1da2337263db63b561c..e3851f873444949f0461f76d3f5aa71c0e916f18 100644 (file)
@@ -5,15 +5,23 @@
  */
 
 
+
 #include <stdio.h>
 
 
-int fgetpos(FILE* f, fpos_t *pos)
+
+/*****************************************************************************/
+/*                                          Code                                    */
+/*****************************************************************************/
+
+
+
+int __fastcall__ fgetpos (FILE* f, fpos_t* pos)
 {
     *pos = ftell (f);
 
     if (*pos != -1)
         return 0;
-    return 1;
+    return -1;
 }