summaryrefslogtreecommitdiffstats
path: root/pw/pw.h
diff options
context:
space:
mode:
Diffstat (limited to 'pw/pw.h')
-rw-r--r--pw/pw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pw/pw.h b/pw/pw.h
index ed3b715..3ab3c74 100644
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -32,6 +32,7 @@
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
+#include <inttypes.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -101,3 +102,6 @@ char *pw_pwcrypt(char *password);
extern const char *Modes[];
extern const char *Which[];
+
+uintmax_t strtounum(const char *numstr, uintmax_t minval, uintmax_t maxval,
+ const char **errmsg);