]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/fputs.c
setviewpage was never assembled
[cc65] / libsrc / common / fputs.c
index f4dcbbf9d60df8a82d9b6f70890f6440fcedb1ef..26eeb85b32612dab9dbae9cd14fdc64e5b453920 100644 (file)
 
 
 
-int fputs (char* s, FILE* f)
+int fputs (const char* s, 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 -1;
+       return EOF;
     }
 
     /* Write the string */