diff options
Diffstat (limited to 'indep.c')
-rw-r--r-- | indep.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.22 2002/06/07 15:46:44 ukai Exp $ */ +/* $Id: indep.c,v 1.23 2002/08/20 17:49:39 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -11,6 +11,22 @@ #include "myctype.h" #include "entity.h" +clen_t +strtoclen(const char *s) +{ +#ifdef HAVE_STRTOLL + return strtoll(s, NULL, 10); +#elif HAVE_STRTOQ + return strtoq(s, NULL, 10); +#elif HAVE_ATOLL + return atoll(s); +#elif HAVE_ATOQ + return atoq(s); +#else + return atoi(s); +#endif +} + #ifndef HAVE_BCOPY void bcopy(const void *src, void *dest, int len) |