Quote Originally Posted by thmm View Post
Have a look at _splitpath:
_splitpath, _wsplitpath | Microsoft Docs
ty I'm now using this:
Code:
#ifdef _WIN32
char* dirname( char* path )
{
	_splitpath( path, NULL, path, NULL, NULL );
	return path;
}
#else
#include <libgen.h>
#endif
I don't expect there to be issues but fi anyone sees any please let me know