vm/config_parser.cpp
/* utility: strips trailing non-alnum chars from string */
strips trailing non-alnum chars from string
strips trailing non - alnum chars from string
static char *trim_str(char *str) {
    int i;
    while(*str && !isalnum(*str) && *str != '/') str++;
    for(i = strlen(str) - 1; str[i] && !isalnum(str[i]) && *str != '/'; i++) {
      str[i] = 0;
    }
    return str;
  }
static char * trim_str ( char * str ) { int i ; while ( * str && ! isalnum ( * str ) && * str != ' ' ) str ++ ; for ( i = strlen ( str ) - 1 ; str [ i ] && ! isalnum ( str [ i ] ) && * str != ' ' ; i ++ ) { str [ i ] = 0 ; } return str ; }
utility: strips trailing non-alnum chars from string
utility : strips trailing non - alnum chars from string