fputs()
#include <stdio.h>
int fputs( char* string, FILE* file_pointer );
This function writes string to the file referenced by
file_pointer. fputs() does not add a newline or
append a null terminator to the output. If successful, fputs() returns a
non-negative value. If an error occurs, it returns EOF.
See also: puts().
Back to Essential C Functions.