chiark / gitweb /
Prep v231.2: basic/stdio-util.h must include parse-printf-format.h instead of printf.h
[elogind.git] / src / basic / parse-util.h
index ea70c5e1e6d28d589eac2be28819afdf0c6832f7..1f420c050b9906ba137b440a986be3b405facb11 100644 (file)
@@ -35,7 +35,6 @@ int parse_mode(const char *s, mode_t *ret);
 int parse_ifindex(const char *s, int *ret);
 
 int parse_size(const char *t, uint64_t base, uint64_t *size);
-
 #if 0 /// UNNEEDED by elogind
 int parse_range(const char *t, unsigned *lower, unsigned *upper);
 
@@ -108,3 +107,5 @@ static inline int safe_atozu(const char *s, size_t *ret_u) {
 int safe_atod(const char *s, double *ret_d);
 
 int parse_fractional_part_u(const char **s, size_t digits, unsigned *res);
+
+int parse_percent(const char *p);