src/lib/edit.c
bool is_an_integer(const char *n)
{
   bool digit_seen = false;
   if (n == NULL) {
      return false;
   }
   while (B_ISDIGIT(*n)) {
      digit_seen = true;
      n++;
   }
   return digit_seen && *n==0;
}
/*
 * Check if the specified string is an integer
 */
Check if the specified string is an integer
Check if the specified string is an integer
bool is_an_integer(const char *n)
{
   bool digit_seen = false;
   if (n == NULL) {
      return false;
   }
   while (B_ISDIGIT(*n)) {
      digit_seen = true;
      n++;
   }
   return digit_seen && *n==0;
}
bool is_an_integer ( const char * n ) { bool digit_seen = false ; if ( n == NULL ) { return false ; } while ( B_ISDIGIT ( * n ) ) { digit_seen = true ; n ++ ; } return digit_seen && * n == 0 ; }
Check if the specified string is an integer
Check if the specified string is an integer