Mitch Capper wrote:
> there is no gnulib module for strrpbrk or strrcspn.

Indeed, such functions are non-standard and not in gnulib.

> This was used for
> the LAST_SLASH_IN_PATH macro I added.  I temporarily just added a static
> implementation to the header along the lines of:
> ```
> static const char* strrpbrk(const char* s, const char* accept) {
> const char* p = s + strlen(s);
> while (--p >= s) {
> const char* c = accept;
> while (*c) {
> if (*c++ == *p)
> return p;
> ```

Gnulib already has the function last_component, in module basename-lgpl,
for this purpose. Why would you need to add another function
LAST_SLASH_IN_PATH, with the same purpose?

Bruno




Reply via email to