Table of Contents
Previous topic Next topic
COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->fputs()
Summary
#include <stdio.h>
int fputs(const char* string, FILE* stream); | Write a string to the output stream |
Parameter
string | Pointer to the string to be written |
stream | Pointer to FILE structure |
Description
This function writes the given string to the output stream 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.