dvd-sector-copy.c, lib.[ch]: Improve and publish the number parsing functions.
[dvdrip] / lib.h
diff --git a/lib.h b/lib.h
index 8a63e58..ceba762 100644 (file)
--- a/lib.h
+++ b/lib.h
@@ -73,6 +73,12 @@ extern PRINTF_LIKE(1, 2) NORETURN void bail(const char *fmt, ...);
 extern PRINTF_LIKE(2, 3) NORETURN
   void bail_syserr(int err, const char *fmt, ...);
 
+#define PNF_JUNK 1u
+extern double parse_float(const char **p_inout, unsigned f,
+                         double min, double max, const char *what);
+extern long parse_int(const char **p_inout, unsigned f,
+                     long min, long max, const char *what);
+
 extern void sit(double t);
 
 extern void carefully_write(int fd, const void *buf, size_t sz);