summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 22:37:50 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 22:37:50 +0100
commit4a72ff34c62f18559e96b35d69c665e07290f228 (patch)
tree0a5ba2ca54f6f6a596d6391a554bd0b865b8eb22 /util.h
parentfa06836725dd6ec9f8f1c4b76608f7147008ecd9 (diff)
implement new utility functions strstrip() and file_in_same_dir()
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.h b/util.h
index a969060331..9aceaef47f 100644
--- a/util.h
+++ b/util.h
@@ -19,7 +19,7 @@ typedef uint64_t usec_t;
#define NSEC_PER_USEC 1000ULL
/* What is interpreted as whitespace? */
-#define WHITESPACE " \t\n"
+#define WHITESPACE " \t\n\r"
usec_t now(clockid_t clock);
@@ -101,4 +101,7 @@ char *path_make_absolute(const char *p, const char *prefix);
int reset_all_signal_handlers(void);
+char *strstrip(char *s);
+char *file_in_same_dir(const char *path, const char *filename);
+
#endif