imme-dongle.tar.gz
[imme-dongle] / linux / parse.h
1 #ifndef PARSE_H
2 #define PARSE_H 1
3
4 #include <stdint.h>
5 #include <stdbool.h>
6
7 /******************************************************************/
8
9 bool parse_number(const uint8_t *str, uint8_t len, uint32_t *result);
10
11 /******************************************************************/
12
13 bool tok(uint8_t const **tok_start, uint8_t const **tok_end, const uint8_t *line_end);
14 bool tok_num(const uint8_t **tok_start, const uint8_t **tok_end, const uint8_t *line_end, uint32_t *i);
15
16 bool memstrcmp(const uint8_t *start, const uint8_t *end, const char *str);
17
18 #endif
19
20