Changeset 3194 in MondoRescue for branches/3.2/mondo/src/lib
- Timestamp:
- Sep 29, 2013, 7:27:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/lib/mr_str.c
r3193 r3194 222 222 length = strlen(in_out); 223 223 224 / * Skip initial caracs */224 // Skip initial caracs 225 225 for (i = 0; index(caracs, in_out[i]) != NULL && i < (int)length ; i++); 226 226 227 / * Shift the string to the begining if needed */227 // Shift the string to the begining if needed 228 228 if (i != 0) { 229 229 for (j = 0; i < (int)length ; i++, j++) { 230 230 in_out[j] = in_out[i]; 231 231 } 232 / * Erase the end of the string if needed */232 // Erase the end of the string if needed 233 233 j++; 234 234 in_out[j] = '\0'; 235 235 } 236 236 237 / * Skip final caracs */237 // Skip final caracs 238 238 for (i = (int)strlen(in_out) - 1; i >= 0 && index(caracs, in_out[i]) != NULL; i--); 239 239 240 / * The string now ends after that char */240 // The string now ends after that char 241 241 i++; 242 242 in_out[i] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.