Changeset 1241 in MondoRescue for branches/stable/mondo/src/common/libmondo-string.c
- Timestamp:
- Mar 12, 2007, 2:22:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-string.c
r1195 r1241 103 103 } 104 104 in_out[i] = '\0'; 105 }106 107 108 inline void turn_wildcard_chars_into_literal_chars(char *strout, char *strin)109 {110 char *p, *q;111 112 for (p = strin, q = strout; *p != '\0'; *(q++) = *(p++)) {113 if (strchr("[]*?", *p)) {114 *(q++) = '\\';115 }116 }117 *q = *p; // for the final '\0'118 105 } 119 106
Note:
See TracChangeset
for help on using the changeset viewer.