summaryrefslogtreecommitdiff
path: root/src/utils.hpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-01-31 17:16:27 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-01-31 17:16:27 +0300
commit0be032c6998e712dc2c9f2ed97c3491d89eb05af (patch)
treef762d884147d2f0a9a115edd0b5e0de554a3ec1b /src/utils.hpp
downloadxift-0be032c6998e712dc2c9f2ed97c3491d89eb05af.tar
xift-0be032c6998e712dc2c9f2ed97c3491d89eb05af.tar.xz
xift-0be032c6998e712dc2c9f2ed97c3491d89eb05af.zip
[xift] Almost done.
Diffstat (limited to 'src/utils.hpp')
-rw-r--r--src/utils.hpp12
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