does anyone know if there is any c/c++ function (or combination of functions) that will trim a string up to the last instance of a character (so if it trimmed to the last instance of '\', it would turn "C:\path\to\file.bla" to simply "file.bla")?
im trying to make a map editor for an rpg that im writting and i keep encountering a problem where it saves the entire path of a file