Alison Schofield wrote:
[..]
> Rather than conditionally including headers or dealing with platform
> differences, replace both basename() usages with a new implementation
> using strrchar to find the last '/' in the path and return everything
> after it, or the whole string if no '/' is found.

This feels like it wants a helper rather than a new open-coded thing.
For example, devpath_to_devname() is an existing similar helper.

Alternatively, just create a local helper called basename when the
C-library is missing the GNU version.

Reply via email to