aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
blob: 8d6613185a23f956a17754fc314b5965c0053d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MAGI_INCLUDED_TOOLS
#define MAGI_INCLUDED_TOOLS
/* * Collection of helpful functions for internal use.
 *
 * blah...
 */


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);

/* Null only in case of error; if *dest is null creates string. */
int magi_str_add(char **dest, int *len, int *size, char c);


#endif