aboutsummaryrefslogtreecommitdiffstats
path: root/src/string_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_utils.h')
-rw-r--r--src/string_utils.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/string_utils.h b/src/string_utils.h
new file mode 100644
index 0000000..74193a0
--- /dev/null
+++ b/src/string_utils.h
@@ -0,0 +1,18 @@
+// Copyright 2007-2022 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#ifndef JALV_STRING_UTILS_H
+#define JALV_STRING_UTILS_H
+
+#include "attributes.h"
+
+// String utilities
+JALV_BEGIN_DECLS
+
+/// Return a newly allocated copy of a string
+char*
+jalv_strdup(const char* str);
+
+JALV_END_DECLS
+
+#endif // JALV_STRING_UTILS_H