C – Fputs

C – Fputs 2017-06-12T13:11:42+00:00


Declaration: char * fputs(const char *str , FILE *stream);

                   The fputs() function writes the content of the string pointed to by str to the specified stream. The null terminator is not written. The fputs() function returns non negative on success and EOF on failure.

For example, the following program uses fputs() to write a string into a file.

Prev Next