• Eric Wong's avatar
    Add prefixcmp() (stol^H^H^H^Hborrowed from git) · f5df13f8
    Eric Wong authored
    This allows us to avoid the nasty repetition in strncmp(foo,
    bar, strlen(foo)).  We'll miss out on the compiler optimizing
    strlen() into sizeof() - 1 for string literals for this; but we
    don't use this it for performance-critical functions anyways...
    f5df13f8
utils.c 5.91 KB