FPUTS(3) Library Functions Manual FPUTS(3)

fputsput a string on a stream

#include <stdio.h>

int fputs(const char *s, FILE *stream);

The fputs() function writes the null-terminated string pointed to by s to the stream pointed to by stream . The terminating null byte is not written.

The and fields of the file will be marked for update between the successful execution of and the next successful completion of a call to or on the same stream or a call to or .

Upon successful completion, fputs() returns a non-negative number. Otherwise it returns EOF, sets an error indicator for the stream and errno is set to indicate the error.

Refer to fputc(3) .

None.

The puts(3) function appends a newline character while fputs() does not.

None.

fopen(3) , putc(3) , puts(3) , <stdio.h> .

Derived from Issue 1 of the SVID.

February 1997 posix.fail