00001 // Copyright (C) 2006 Alexis ROBERT 00002 00003 #include "util.h" 00004 00005 std::string freedaisy::dirname(std::string path) { 00006 int count = path.rfind('/'); 00007 return path.substr(0, count); 00008 }