#include <ctype.h>
/* checks a string to determine whether it's a non-negative decimal integer or not */
-int
-isint (str)
-char *str;
+int util_isint(char *str)
{
-char *i;
+ char *i;
-for (i=str; *i && !isspace(*i); i++) {
- if (!isdigit(*i))
- return 0;
- }
+ for (i=str; *i && !isspace(*i); i++) {
+ if (!isdigit(*i))
+ return 0;
+ }
-return 1;
+ return 1;
}