mod/maxgui.mod/fltkmaxgui.mod/src/Fl_win32.cxx
const char *fl_filename_name(const char *name) {
  const char *p,*q;
  if (!name) return (0);
  q = name;
  if (q[0] && q[1]==':') q += 2; // skip leading drive letter
  for (p = q; *p; p++) if (*p == '/' || *p == '\\') q = p+1;
  return q;
}
// returns pointer to the filename, or null if name ends with '/'
returns pointer to the filename, or null if name ends with '/'
returns pointer to the filename or null if name ends with ' / '
const char *fl_filename_name(const char *name) {
  const char *p,*q;
  if (!name) return (0);
  q = name;
  if (q[0] && q[1]==':') q += 2; 
  for (p = q; *p; p++) if (*p == '/' || *p == '\\') q = p+1;
  return q;
}
const char * fl_filename_name ( const char * name ) { const char * p , * q ; if ( ! name ) return ( 0 ) ; q = name ; if ( q [ 0 ] && q [ 1 ] == ' ' ) q += 2 ; for ( p = q ; * p ; p ++ ) if ( * p == ' ' || * p == ' \\ ' ) q = p + 1 ; return q ; }
returns pointer to the filename, or null if name ends with '/'
returns pointer to the filename or null if name ends with ' / '
// skip leading drive letter