def lwrap(s, width=64):
    """
    Wrap a C-prototype like string into a number of lines.
    """
    l = []
    p = ""
    while len(s) > width:
        y = s[:width].rfind(',')
        if y == -1:
            y = s[:width].rfind('(')
        if y == -1:
            break
        l.append(p + s[:y + 1])
        s = s[y + 1:].lstrip()
        p = "    "
    if len(s) > 0:
        l.append(p + s)
    return l