X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fcommon%2Ffputs.c;h=26eeb85b32612dab9dbae9cd14fdc64e5b453920;hb=6657214a18d41ce76e9ea1bc8b67977ee13d3645;hp=f4dcbbf9d60df8a82d9b6f70890f6440fcedb1ef;hpb=53dd513176425872128ef26031d00952ef7a0628;p=cc65 diff --git a/libsrc/common/fputs.c b/libsrc/common/fputs.c index f4dcbbf9d..26eeb85b3 100644 --- a/libsrc/common/fputs.c +++ b/libsrc/common/fputs.c @@ -13,11 +13,11 @@ -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 */