Ignore:
Timestamp:
Sep 20, 2009, 2:44:23 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Remove function turn_wildcard_chars_into_literal_chars and replace it with a call to mr_stresc more generic
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-string.c

    r2405 r2413  
    103103    in_out[i] = '\0';
    104104}
    105 
    106 
    107 
    108 
    109 inline void turn_wildcard_chars_into_literal_chars(char *sout, char *sin)
    110 {
    111     char *p, *q;
    112 
    113     for (p = sin, q = sout; *p != '\0'; *(q++) = *(p++)) {
    114         if (strchr("[]*?", *p)) {
    115             *(q++) = '\\';
    116         }
    117     }
    118     *q = *p;                    // for the final '\0'
    119 }
    120 
    121105
    122106
Note: See TracChangeset for help on using the changeset viewer.