blob: f7e701d41d5ccb170e9259bf88c6f1738786e2ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef MAGI_INCLUDED_TOOLS
#define MAGI_INCLUDED_TOOLS
void magi_str_lowercase(char *str);
/* Results of both create functions are malloced, so need to be freed. */
char *magi_str_create_copy(const char *first, int len);
char *magi_str_create(int len);
typedef struct magi_str {
char *data;
int size;
int len;
} magi_str;
int magi_str_add(magi_str *str, char c);
#endif
|