1cc8c6d3d7f2357898ad366c94b1f33a403a2aee
angie
  Thu Dec 8 14:14:33 2016 -0800
Libifying isAllDigits from a handful of places into common.c.

diff --git src/inc/common.h src/inc/common.h
index c87cdd2..88c5e22 100644
--- src/inc/common.h
+++ src/inc/common.h
@@ -1411,30 +1411,33 @@
 
 /*	In case the development environment does not supply INFINITY	*/
 #if !defined(INFINITY)
 #define INFINITY (1.0/0.0)
 #endif
 
 void makeDirs(char* path);
 /* make a directory, including parent directories */
 
 boolean isSymbolString(char *s);
 /* Return TRUE if s can be used as a symbol in the C language */
 
 boolean isNumericString(char *s);
 /* Return TRUE if string is numeric (integer or floating point) */
 
+boolean isAllDigits(char *s);
+/* Return TRUE if string is non-empty and contains only digits (i.e. is a nonnegative integer). */
+
 char *skipNumeric(char *s);
 /* Return first char of s that's not a digit */
 
 char *skipToNumeric(char *s);
 /* skip up to where numeric digits appear */
 
 char *splitOffNonNumeric(char *s);
 /* Split off non-numeric part, e.g. mm of mm8. Result should be freed when done */
 
 char *splitOffNumber(char *db);
 /* Split off number part, e.g. 8 of mm8. Result should be freed when done */
 
 
 void childExecFailedExit(char *msg);
 /* Child exec failed, so quit without atexit cleanup */