From 83cd2267b309fa7411acaed356f88101196bb2ad Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Thu, 6 Feb 2020 19:43:57 +0300 Subject: [magi] Broken to become better. --- src/tools.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tools.h (limited to 'src/tools.h') diff --git a/src/tools.h b/src/tools.h new file mode 100644 index 0000000..8d66131 --- /dev/null +++ b/src/tools.h @@ -0,0 +1,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 -- cgit v1.2.3