Mercurial > mplayer.hg
comparison path.c @ 32643:d68c55785751
Change Doxygen syntax for mp_dirname.
author | cboesch |
---|---|
date | Fri, 24 Dec 2010 23:05:49 +0000 |
parents | 8a556b3aff79 |
children | a6431ff5481f |
comparison
equal
deleted
inserted
replaced
32642:7b135236a44a | 32643:d68c55785751 |
---|---|
209 s = strrchr(path, '/'); | 209 s = strrchr(path, '/'); |
210 return s ? s + 1 : path; | 210 return s ? s + 1 : path; |
211 } | 211 } |
212 | 212 |
213 /** | 213 /** |
214 * \brief Allocates a new buffer containing the directory name | 214 * @brief Allocates a new buffer containing the directory name |
215 * \param path Original path. Must be a valid string. | 215 * @param path Original path. Must be a valid string. |
216 * | 216 * |
217 * The path returned always contains a trailing slash '/'. | 217 * @note The path returned always contains a trailing slash '/'. |
218 * On systems supporting DOS paths, '\' is also considered as a directory | 218 * On systems supporting DOS paths, '\' is also considered as a directory |
219 * separator in addition to the '/'. | 219 * separator in addition to the '/'. |
220 */ | 220 */ |
221 char *mp_dirname(const char *path) | 221 char *mp_dirname(const char *path) |
222 { | 222 { |
223 const char *base = mp_basename(path); | 223 const char *base = mp_basename(path); |
224 size_t len = base - path; | 224 size_t len = base - path; |