MLIB
Loading...
Searching...
No Matches
basename.h
Go to the documentation of this file.
1
6#pragma once
7
8#if __has_include("defs.h")
9#include "defs.h"
10#endif
11
12namespace mlib {
13
15const char* dirname (const char* filename);
16
18const char* basename (const char* filename);
19
20}; // namespace mlib
const char * dirname(const char *filename)
Return a pointer to pathname of the file deleting any trailing '\' character.
Definition basename.cpp:68
const char * basename(const char *filename)
Return a pointer to the filename without any path component.
Definition basename.cpp:31