read a line from stdin
More...
#include <furi/core/string.h>
Go to the source code of this file.
|
|
typedef enum GetLineError | GetLineError |
| |
|
typedef struct GetLineResult | GetLineResult |
| |
|
| enum | GetLineError { GetLineErrorNone
, GetLineErrorTooLong
, GetLineErrorInterrupt
, GetLineErrorEOF
} |
| |
◆ get_line()
Read a line from stdin.
Only lines up to max_length characters (including the newline) are read and returned. Longer lines are discarded.
- Parameters
-
| max_length | maximal length of the string (CR and LF characters are trimmed). |
- Returns
- result of the operation. If error is GetLineErrorNone, line contains a valid string.