]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/fputs.c
Fix 32/64-bit int/pointer casts
[cc65] / libsrc / common / fputs.c
index 26eeb85b32612dab9dbae9cd14fdc64e5b453920..be476a3f0be298eef14c2c192cf3ab74de35b4b5 100644 (file)
@@ -1,23 +1,23 @@
 /*
- * int fputs (const char* s, FILE* f);
- *
- * Ullrich von Bassewitz, 11.08.1998
- */
+** int fputs (const char* s, FILE* f);
+**
+** Ullrich von Bassewitz, 11.08.1998
+*/
 
 
 
 #include <stdio.h>
 #include <string.h>
-#include <fcntl.h>
+#include <unistd.h>
 #include "_file.h"
 
 
 
-int fputs (const char* s, FILE* f)
+int __fastcall__ fputs (const char* s, register FILE* f)
 {
     /* Check if the file is open or if there is an error condition */
     if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) {
-       return EOF;
+        return EOF;
     }
 
     /* Write the string */