aboutsummaryrefslogtreecommitdiffstats
path: root/src/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index dc654d6..b059596 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -31,6 +31,9 @@ int count_substrs(const char *s, const char *sub);
an end character is reached. */
char *strdup_until(const char *s, const char *endchars);
+/* Like sprintf but writes to an automatically malloc'ed buffer. */
+char *sprintf_new(const char *format, ...);
+
/* Returns a pointer to the first character after the
final slash of path, or path itself if it contains no slashes.
If the path ends with a slash, then the result is an empty