FILE_PATHSEP
(( *(basename + pathlen - 1) != FILE_PATHSEP ) ||
*(result+pathlen) = FILE_PATHSEP; /* replaces '\0' */
#ifndef FILE_PATHSEP