|
ChibiOS/HAL
7.2.0
|

Mini scanf-like functionality.
Macros | |
| #define | CHSCANF_USE_FLOAT FALSE |
| Float type support. More... | |
Functions | |
| int | chvscanf (BaseBufferedStream *chp, const char *fmt, va_list ap) |
| System formatted input function. More... | |
| int | chscanf (BaseBufferedStream *chp, const char *fmt,...) |
| System formatted input function. More... | |
| int | chsnscanf (char *str, size_t size, const char *fmt,...) |
| System formatted input function. More... | |
| int | chvsnscanf (char *str, size_t size, const char *fmt, va_list ap) |
| System formatted input function. More... | |
| 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 streamGet.
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().
