Standard I/O

Description

Standard I/O.

Functions

sl_status_t sl_putchar (char c)
Put a character on default the stream.
sl_status_t sl_getchar (char *c)
Get a character on default the stream.

Macros

#define putchar sl_putchar_std_wrapper
Put a character on default the stream (match standard API).
#define getchar sl_getchar_std_wrapper
Get a character on default the stream.

Function Documentation

sl_putchar()

sl_status_t sl_putchar ( char c )

Put a character on default the stream.

Parameters
[in] c Character to print
Returns
Status result

sl_getchar()

sl_status_t sl_getchar ( char * c )

Get a character on default the stream.

Parameters
[out] c Pointer to variable that will receive the character.
Returns
Status result

Macro Definition Documentation

putchar

#define putchar   sl_putchar_std_wrapper

Put a character on default the stream (match standard API).

Parameters
[in] c Integer character to print
Returns
On success, the character written is returned. If a writing error occurs, -1 is returned (EOF).

getchar

#define getchar   sl_getchar_std_wrapper

Get a character on default the stream.

Returns
On success, the character read is returned If a reading error occurs, -1 is returned (EOF).