src/globals/utils.c
int strin(const char* s0, const char* const sarray[], const uns size) {
  uns ii;

  for(ii = 0; ii < size; ii++)
    if(!strncmp(s0, sarray[ii], MAX_STR_LENGTH))
      return ii;
  return -1;
}
/**************************************************************************************/
/* strin: "String in" -- Takes a string and an array of strings and returns the
   index if the string is in the list, -1 if not. */
"String in" -- Takes a string and an array of strings and returns the
index if the string is in the list, -1 if not.
" String in " -- Takes a string and an array of strings and returns the index if the string is in the list - 1 if not .
int strin(const char* s0, const char* const sarray[], const uns size) {
  uns ii;
  for(ii = 0; ii < size; ii++)
    if(!strncmp(s0, sarray[ii], MAX_STR_LENGTH))
      return ii;
  return -1;
}
int strin ( const char * s0 , const char * const sarray [ ] , const uns size ) { uns ii ; for ( ii = 0 ; ii < size ; ii ++ ) if ( ! strncmp ( s0 , sarray [ ii ] , MAX_STR_LENGTH ) ) return ii ; return -1 ; }
strin: "String in" -- Takes a string and an array of strings and returns the
index if the string is in the list, -1 if not.
strin : " String in " -- Takes a string and an array of strings and returns the index if the string is in the list - 1 if not .