Everything

fputs


Outputs a string to a stream input/output file.

[Format]

#include <stdio.h>

long fputs (const char *s, FILE *fp);

[Parameters]

s Pointer to string to be output

fp File pointer

[Return values]

Normal: 0

Abnormal: Nonzero

[Remarks]

The fputs function outputs the string pointed to by s up to the character preceding the null character to the stream input/output file indicated by file pointer fp. The null character indicating the end of the string is not output.

The fputs function normally returns zero, but returns nonzero when an error occurs.