On 06/10/2015 14:13, Eric Blake wrote:
> 
> If you are already writing code to be ported to both Unixy and
> windows systems, you are better off rolling your own alternative to
> basename (or better, using something else that has already rolled a
> portable version for you - while I know gnulib does that, we aren't
> using gnulib; but I assume glib has something along those lines
> even though I haven't looked for it).

Yes, there is g_path_get_basename (and g_path_get_dirname).  Added to
http://wiki.qemu.org/BiteSizedTasks#API_conversion.

Paolo

Reply via email to