summaryrefslogtreecommitdiff
path: root/src/core/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/misc.h')
-rw-r--r--src/core/misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/misc.h b/src/core/misc.h
index 37a3953d..35a9dfc8 100644
--- a/src/core/misc.h
+++ b/src/core/misc.h
@@ -101,6 +101,9 @@ int expand_escape(const char **data);
/* Escape all '"', "'" and '\' chars with '\' */
char *escape_string(const char *str);
+/* Like strlcpy(), but return -1 if buffer was overflown, 0 if not. */
+int strocpy(char *dest, const char *src, size_t dstsize);
+
int nearest_power(int num);
/* Returns TRUE / FALSE */