HP C/iX Library Reference Manual (30026-90004)

168 Chapter5
HP C/iX Library Function Descriptions
fputs
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