mod/maxgui.mod/fltkmaxgui.mod/src/fl_utf8.cxx
void fl_make_path_for_file( const char *path )
{
  const char *s = strrchr( path, '/' );
  if ( !s ) return;
  int len = s-path;
  char *p = (char*)malloc( len+1 );
  memcpy( p, path, len );
  p[len] = 0;
  fl_make_path( p );
  free( p );
}
// strip the filename and create a path
strip the filename and create a path
strip the filename and create a path
void fl_make_path_for_file( const char *path )
{
  const char *s = strrchr( path, '/' );
  if ( !s ) return;
  int len = s-path;
  char *p = (char*)malloc( len+1 );
  memcpy( p, path, len );
  p[len] = 0;
  fl_make_path( p );
  free( p );
}
void fl_make_path_for_file ( const char * path ) { const char * s = strrchr ( path , ' ' ) ; if ( ! s ) return ; int len = s - path ; char * p = ( char * ) malloc ( len + 1 ) ; memcpy ( p , path , len ) ; p [ len ] = 0 ; fl_make_path ( p ) ; free ( p ) ; }
strip the filename and create a path
strip the filename and create a path