Table of Contents
Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->puts()
Summary
#include <stdio.h>
int puts(const char* string); | Write a string to stdout |
Parameter
string | String to be written |
|
Description
This function writes the given string to the output stream stdout, writing a newline character ('\n) instead of the strings terminating null character ('\0').
Return Value
The return value is the last character written which is always a newline character. A return value of EOF (-1) indicates an error.