All pastes #806987 Raw Edit

Stuff

public text v1 · immutable
·published 2007-12-06 02:42 UTC
rendered paste body
void ltrim(char *string)
{
        char    *cp, *lp;
        int     i;

        lp = strchr(string, 0);
        cp = string;
        while (cp <= lp && (isspace(*cp)))
                *cp++;
        memmove(string, cp, lp-cp);
}