chiark / gitweb /
mount: properly handle LABEL="" in fstab
[elogind.git] / src / util.h
index e8d9b3e74bb496503db44ece59973719047d1d33..4063ee7ff276b82b8b1f28d78f4decd4cccbef02 100644 (file)
@@ -339,6 +339,11 @@ char *ellipsize(const char *s, unsigned length, unsigned percent);
 
 int touch(const char *path);
 
+char *unquote(const char *s, const char quote);
+
+#define NULSTR_FOREACH(i, l) \
+        for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
+
 const char *ioprio_class_to_string(int i);
 int ioprio_class_from_string(const char *s);