That was my mistake, missed an r in there which also means there is no
gnulib module for strrpbrk or strrcspn.   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;
```
I am aware of the lookup table option instead although given this isn't for
an actual  strrpbrk maybe it would be best to just use a purpose built
function for win32 like
```
static char *LAST_SLASH_IN_PATH(char *str) {
  if (!str)
    return NULL;
  char *last_slash = NULL;
  while (*str) {
    if (*str == '/' || *str == '\\')
      last_slash = str; // Update pointer whenever we find a slash
    str++;
  }
  return last_slash;
}
```

~mitch (they, them)


>

Reply via email to