IS_SEPARATOR
if (IS_SEPARATOR(c) || IS_SEPARATOR(*path2))
while (pend > pathstart && IS_SEPARATOR(pend[-1]))