7.19.7.10 The puts function

Synopsis

1

#include <stdio.h>
int puts(const char *s);

Description

2

The puts function writes the string pointed to by s to the stream pointed to by stdout, and appends a new-line character to the output. The terminating null character is not written.

Returns

3

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