From 0be032c6998e712dc2c9f2ed97c3491d89eb05af Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 31 Jan 2020 17:16:27 +0300 Subject: [xift] Almost done. --- src/utils.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/utils.hpp (limited to 'src/utils.hpp') 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 -- cgit v1.2.3