HomeFreeBSD

Call basename() in a portable way.

Description

Call basename() in a portable way.

Pull a copy of the filename string before calling basename(). Change the
loop to not return on its own, so we can put a free() statement at the
bottom.

Details

Provenance
edAuthored on
Parents
rS303443: Don't call basename() and dirname() in an unportable way.
Branches
Unknown
Tags
Unknown