| 274 | } |
| 275 | |
| 276 | const char *av_dirname(char *path) |
| 277 | { |
| 278 | char *p = path ? strrchr(path, '/') : NULL; |
| 279 | |
| 280 | #if HAVE_DOS_PATHS |
| 281 | char *q = path ? strrchr(path, '\\') : NULL; |
| 282 | char *d = path ? strchr(path, ':') : NULL; |
| 283 | |
| 284 | d = d ? d + 1 : d; |
| 285 | |
| 286 | p = FFMAX3(p, q, d); |
| 287 | #endif |
| 288 | |
| 289 | if (!p) |
| 290 | return "."; |
| 291 | |
| 292 | *p = '\0'; |
| 293 | |
| 294 | return path; |
| 295 | } |
| 296 | |
| 297 | char *av_append_path_component(const char *path, const char *component) |
| 298 | { |
no outgoing calls
no test coverage detected