fputs

Syntax:

    #include <cstdio>
    int fputs( const char *str, FILE *stream );

The fputs function writes an array of characters pointed to by str to the given output stream.

The return value is non-negative on success, and EOF on failure. This function assumes that str is terminated with a '\0', which will not be converted to a newline character or written to stream.

Related Topics: fgets, fprintf, fscanf, gets, puts