5
/* predicate if string is all numerical
7
/* #include <stringops.h>
10
/* const char *string;
12
/* alldig() determines if its argument is an all-numerical string.
14
/* An alldig() routine appears in Brian W. Kernighan, P.J. Plauger:
15
/* "Software Tools", Addison-Wesley 1976.
19
/* The Secure Mailer license must be distributed with this software.
22
/* IBM T.J. Watson Research
24
/* Yorktown Heights, NY 10598, USA
32
/* Utility library. */
34
#include <stringops.h>
36
/* alldig - return true if string is all digits */
38
int alldig(const char *string)
44
for (cp = string; *cp != 0; cp++)