summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 922f641..c82169e 100644
--- a/src/util.h
+++ b/src/util.h
@@ -47,6 +47,13 @@ void *Realloc(void *p, size_t size);
char *StrCopy(const char *source);
+/* Safely copies a string. The destination is returned.
+*/
+char *SafeStrCopy(char *destination,
+ const char *source,
+ size_t destination_size);
+
+
/* Returns the filename portion of path. Note returned pointer is pointing
inside of path.
*/