• rswindell's avatar
    New function: strListModifyEach(), iterates through a string list, calling · 7fa88586
    rswindell authored
    a caller-supplied function (callback) which can modify each string or leave
    the string in tact by returning NULL. Shrinking strings is trivial while
    expanding strings (making them bigger) is a little more involved, probably
    using the cbdata to pass a temporary buffer around to store each expanded
    string or returning a new globally-valid pointer.
    Removed the malloc.h #include as we haven't used alloca() here for a while.
    7fa88586
str_list.h 8.06 KB