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

Functions

int puts (const char *str)
 Write string to stdout. More...
 

Function Documentation

◆ puts()

int puts ( const char *  str)

Write string to stdout.

Writes the C string pointed by str to the standard output (stdout) and appends a newline character ('
'). 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 to be printed.
Returns
On success, the character written is returned. If a writing error occurs, EOF is returned and the error indicator is set.