Changeset 3194 in MondoRescue for branches/3.2/mondo/src/lib/mr_str.c


Ignore:
Timestamp:
Sep 29, 2013, 7:27:11 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix all compilation/link error due to the previous giant merge with 3.1. 3.2 is ready to test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/lib/mr_str.c

    r3193 r3194  
    222222    length = strlen(in_out);
    223223
    224     /* Skip initial caracs */
     224    // Skip initial caracs
    225225    for (i = 0; index(caracs, in_out[i]) != NULL && i < (int)length ; i++);
    226226
    227     /* Shift the string to the begining if needed */
     227    // Shift the string to the begining if needed
    228228    if (i != 0) {
    229229        for (j = 0; i < (int)length ; i++, j++) {
    230230            in_out[j] = in_out[i];
    231231        }
    232         /* Erase the end of the string if needed */
     232        // Erase the end of the string if needed
    233233        j++;
    234234        in_out[j] = '\0';
    235235    }
    236236
    237     /* Skip final caracs */
     237    // Skip final caracs
    238238    for (i = (int)strlen(in_out) - 1; i >= 0  && index(caracs, in_out[i]) != NULL; i--);
    239239
    240     /* The string now ends after that char */
     240    // The string now ends after that char
    241241    i++;
    242242    in_out[i] = '\0';
Note: See TracChangeset for help on using the changeset viewer.