HP 3000 Manuals

fputs [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

fputs 

Writes a string to an output stream.

Syntax 

     #include <stdio.h>
     int fputs (const char *string, FILE *stream);

Parameters 

string        A pointer to an array of characters.

stream        A pointer to an output stream.

Return Values 

>=0           Success.

EOF           An error occurred.

Description 

The fputs function writes the character string pointed to by string to
the specified stream, stopping when a null character is encountered.  The
terminating null character is not written.

Examples 

Refer to the examples located in the fgets function description.

See Also 

ferror(), fopen(), fread(), printf(), fgets(), putc(), ANSI C 4.9.7.4,
POSIX.1 8.1



MPE/iX 5.0 Documentation