7.19.7.4 The fputs function

Synopsis

1

#include <stdio.h>
int fputs(const char * restrict s,
     FILE * restrict stream);

Description

2

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

3

The fputs function returns EOF if a write error occurs; otherwise it returns a nonnegative value.