Changeset 2413 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-string.c
- Timestamp:
- Sep 20, 2009, 2:44:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-string.c
r2405 r2413 103 103 in_out[i] = '\0'; 104 104 } 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 121 105 122 106
Note:
See TracChangeset
for help on using the changeset viewer.