src/lib/scan.c
char *strip_trailing_slashes(char *dir)
{
   char *p;

   /* strip trailing slashes */
   p = dir -1 + strlen(dir);
   while (p >= dir && IsPathSeparator(*p)) *p-- = 0;
   return dir;
}
/* Strip any trailing slashes from a directory path */
Strip any trailing slashes from a directory path
Strip any trailing slashes from a directory path
char *strip_trailing_slashes(char *dir)
{
   char *p;
   p = dir -1 + strlen(dir);
   while (p >= dir && IsPathSeparator(*p)) *p-- = 0;
   return dir;
}
char * strip_trailing_slashes ( char * dir ) { char * p ; p = dir - 1 + strlen ( dir ) ; while ( p >= dir && IsPathSeparator ( * p ) ) * p -- = 0 ; return dir ; }
Strip any trailing slashes from a directory path
Strip any trailing slashes from a directory path
/* strip trailing slashes */