From aa82f69dea2f2d5fe4337dfb12cea54fabdab175 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 6 Oct 2007 22:42:14 +0800 Subject: [BUILTIN] Use intmax_t arithmetic in test This patch adds the function atomax10 and uses it in test(1) so that we support intmax_t comparisons. --- src/mystring.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mystring.h') diff --git a/src/mystring.h b/src/mystring.h index f451cc2..c9cade6 100644 --- a/src/mystring.h +++ b/src/mystring.h @@ -34,6 +34,7 @@ * @(#)mystring.h 8.2 (Berkeley) 5/4/95 */ +#include #include extern const char snlfmt[]; @@ -47,6 +48,7 @@ extern const char homestr[]; void scopyn(const char *, char *, int); #endif char *prefix(const char *, const char *); +intmax_t atomax10(const char *); int number(const char *); int is_number(const char *); char *single_quote(const char *); -- cgit 1.4.1