MicrOS
fputs.c File Reference
#include "../stdio.h"

Functions

int fputs (const char *str, FILE *stream)
 Write string to stream. More...
 

Function Documentation

◆ fputs()

int fputs ( const char *  str,
FILE stream 
)

Write string to stream.

Writes the C string pointed by str to the stream. The function begins copying from the address specified (str) until it reaches the terminating null character ('\0'). This terminating null-character is not copied to the stream.

Parameters
strC string with the content to be written to stream.
streamPointer to a FILE object that identifies the stream to be closed.
Returns
On success, a non-negative value is returned. On error, the function returns EOF and sets the error indicator.