user/lib/libc/src/file/fwrite.c
/**
 * Writes a string to the file.
 */
Writes a string to the file.
Writes a string to the file .
int fputs(const char *str, FILE *stream) {
    int i = 0, err;
    while(*str) {
        err = fputc(*str++, stream);
        if(err < 0) return err;
        else i++;
    }
    return i;
}
int fputs ( const char * str , FILE * stream ) { int i = 0 , err ; while ( * str ) { err = fputc ( * str ++ , stream ) ; if ( err < 0 ) return err ; else i ++ ; } return i ; }
Writes a string to the file.
Writes a string to the file .