Changeset 1765 in MondoRescue for branches/2.2.5/mindi-busybox/libbb/trim.c


Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (17 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/libbb/trim.c

    r821 r1765  
    99 */
    1010
    11 #include <stdio.h>
    12 #include <string.h>
    13 #include <ctype.h>
    1411#include "libbb.h"
    15 
    1612
    1713void trim(char *s)
     
    2420
    2521    /* trim leading whitespace */
    26     if(len) {
     22    if (len) {
    2723        lws = strspn(s, " \n\r\t\v");
    2824        memmove(s, s + lws, len -= lws);
    2925    }
    30     s[len] = 0;
     26    s[len] = '\0';
    3127}
Note: See TracChangeset for help on using the changeset viewer.