Table of Contents
Previous Section Next Section

puts

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

The puts( ) function writes the string pointed to by str to the standard output device. The null terminator is translated to a newline.

The puts( ) function returns a nonnegative value if successful and an EOF upon failure.

Related functions are putc( ), gets( ), and printf( ).


Table of Contents
Previous Section Next Section