puzzlebox
Loading...
Searching...
No Matches
parse.h
1#pragma once
2
3#include <stddef.h>
4
13#define IFS " \t\n"
14
16#define SET_OCT "01234567"
18#define SET_DEC "0123456789"
20#define SET_HEX SET_DEC "abcdefABCDEF"
22#define SET_HEX_STR SET_HEX ":"
23
37char * consume_token(char * token, const char * ifs);
38
53int strtodata(const char * str, char ** data, size_t * size);
54
int strtodata(const char *str, char **data, size_t *size)
convert string with literals into raw data
Definition parse.cpp:168
char * consume_token(char *token, const char *ifs)
modify token to point to the first token when broken up on ifs and return the remaining data
Definition cmd.cpp:14