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

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
[in]c

Character to print

Returns

  • Status result


Definition at line 62 of file platform/common/inc/sl_stdio.h

sl_getchar#

sl_status_t sl_getchar (char * c)

Get a character on the default stream.

Parameters
[out]c

Pointer to variable that will receive the character.

Returns

  • Status result


Definition at line 81 of file platform/common/inc/sl_stdio.h

Macro Definition Documentation#

putchar#

#define putchar
Value:
(c)

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

Returns

  • On success, the character written is returned. If a writing error occurs, -1 is returned (EOF).


Definition at line 72 of file platform/common/inc/sl_stdio.h

getchar#

#define getchar
Value:
sl_getchar_std_wrapper

Get a character on the default stream.

Returns

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


Definition at line 89 of file platform/common/inc/sl_stdio.h