| 35 #else |
35 #else |
| 36 # define DIRSLASH "\\" |
36 # define DIRSLASH "\\" |
| 37 #endif |
37 #endif |
| 38 |
38 |
| 39 // ------------------------------------------------------------------------------------------------- |
39 // ------------------------------------------------------------------------------------------------- |
| 40 |
40 // |
| 41 FUNCTION |
41 FUNCTION |
| 42 dirname (String const& path) -> String |
42 dirname (String const& path) -> String |
| 43 { |
43 { |
| 44 int lastpos = path.find_last (DIRSLASH); |
44 int lastpos = path.find_last (DIRSLASH); |
| 45 |
45 |