chiark / gitweb /
util-lib: add ordered_set_ensure_allocated()
[elogind.git] / src / basic / parse-util.h
index 43f23500f15de1e90d2dbc6008803f7de2575850..567535c02df5cdf2dc589e3dc14035b7a002bd40 100644 (file)
@@ -35,8 +35,7 @@ int parse_ifindex(const char *s, int *ret);
 
 int parse_size(const char *t, uint64_t base, uint64_t *size);
 
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
 int parse_range(const char *t, unsigned *lower, unsigned *upper);
 
 #define FORMAT_BYTES_MAX 8
@@ -94,3 +93,5 @@ static inline int safe_atoli(const char *s, long int *ret_u) {
 #endif
 
 int safe_atod(const char *s, double *ret_d);
+
+int parse_fractional_part_u(const char **s, size_t digits, unsigned *res);