Standard I/O#
Standard I/O allows to get and put characters on stdio stream that is the default in I/O Streams.
Functions#
sl_putchar(char c)
Put a character on the default stream.
sl_getchar(char *c)
Get a character on the default stream.
Macros#
#define
putchar (c)
Put a character on the default stream (match standard API).
#define
getchar sl_getchar_std_wrapper
Get a character on the default stream.
Function Documentation#
sl_putchar#
sl_status_t sl_putchar (char c)
Put a character on the default stream.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
char | [in] | c | Character to print |
Returns
Status result
sl_getchar#
sl_status_t sl_getchar (char * c)
Get a character on the default stream.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
char * | [out] | c | Pointer to variable that will receive the character. |
Returns
Status result