|
ChibiOS/HAL 9.0.0
|
Mini scanf-like functionality.

Macros | |
| #define | CHSCANF_USE_FLOAT FALSE |
| Float type support. | |
Functions | |
| static long | sym_to_val (char sym, int base) |
| int | chvscanf (BaseBufferedStream *chp, const char *fmt, va_list ap) |
| System formatted input function. | |
| int | chscanf (BaseBufferedStream *chp, const char *fmt,...) |
| System formatted input function. | |
| int | chsnscanf (char *str, size_t size, const char *fmt,...) |
| System formatted input function. | |
| int | chvsnscanf (char *str, size_t size, const char *fmt, va_list ap) |
| System formatted input function. | |
|
static |
Definition at line 36 of file chscanf.c.
Referenced by chvscanf().
| int chvscanf | ( | BaseBufferedStream * | chp, |
| const char * | fmt, | ||
| va_list | ap ) |
System formatted input function.
This function implements a minimal vscanf()-like functionality with input on a BaseSequentialStream. The general parameters format is: %[*][width][l|L]p The following parameter types (p) are supported:
| [in] | chp | pointer to a BufferedStream implementing object |
| [in] | fmt | formatting string |
| [in] | ap | list of parameters |
Definition at line 111 of file chscanf.c.
References STM_RESET, streamGet, streamUnget, and sym_to_val().
Referenced by chscanf(), and chvsnscanf().

| int chscanf | ( | BaseBufferedStream * | chp, |
| const char * | fmt, | ||
| ... ) |
System formatted input function.
This function implements a minimal scanf() like functionality with input from a BufferedStream. The general parameters format is: %[*][width][l|L]p The following parameter types (p) are supported:
| [in] | chp | pointer to a BufferedStream implementing object |
| [in] | fmt | formatting string |
Definition at line 695 of file chscanf.c.
References chvscanf().

| int chsnscanf | ( | char * | str, |
| size_t | size, | ||
| const char * | fmt, | ||
| ... ) |
System formatted input function.
This function implements a minimal snscanf()-like functionality. The general parameters format is: %[*][width][l|L]p The following parameter types (p) are supported:
| [in] | str | pointer to a buffer |
| [in] | size | size of the buffer |
| [in] | fmt | formatting string |
Definition at line 734 of file chscanf.c.
References chvsnscanf().

| int chvsnscanf | ( | char * | str, |
| size_t | size, | ||
| const char * | fmt, | ||
| va_list | ap ) |
System formatted input function.
This function implements a minimal vsnscanf()-like functionality. The general parameters format is: %[*][width][l|L]p The following parameter types (p) are supported:
| [in] | str | pointer to a buffer |
| [in] | size | size of the buffer |
| [in] | fmt | formatting string |
| [in] | ap | list of parameters |
Definition at line 776 of file chscanf.c.
References chvscanf(), and msObjectInit().
Referenced by chsnscanf().
