The fputs function

Name

fputs -- 

Synopsis

#include <stdio.h>

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

Description

The fputs function writes the string pointed to by s to the stream pointed to by stream. The terminating null character is not written.

Returns

The fputs function returns EOF if a write error occurs: otherwise it returns a non-negative value.

Implementation Notes

The value of stream must be stdout or stderr.