From 85d6a8c10ec9469c80382fb0b9e9bb0d2ec7c520 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Tue, 17 Nov 2015 10:34:53 +0000 Subject: Show the source dir in the first field on /etc/mtab. Fixes #15. Thanks @tyll! --- src/misc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/misc.h') 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 -- cgit v1.2.3