diff options
Diffstat (limited to 'src/utils.hpp')
-rw-r--r-- | src/utils.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils.hpp b/src/utils.hpp new file mode 100644 index 0000000..2db1436 --- /dev/null +++ b/src/utils.hpp @@ -0,0 +1,12 @@ +#ifndef XIFT_INCLUDED_UTILS +#define XIFT_INCLUDED_UTILS + + +/* Results of both create functions are malloced, so need to be freed. */ +char *xift_str_create_copy(const char *begin, const char *end); + +/* False only in case of error. */ +bool xift_str_add(char *&dest, int &len, int &size, char c); + + +#endif |