MLIB
Loading...
Searching...
No Matches
basename.h
Go to the documentation of this file.
1/*
2 Copyright (c) Mircea Neacsu (2014-2025) Licensed under MIT License.
3 This file is part of MLIB project. See LICENSE file for full license terms.
4*/
5
7
8#pragma once
9
10#if __has_include("defs.h")
11#include "defs.h"
12#endif
13
14namespace mlib {
15
17const char* dirname (const char* filename);
18
20const char* basename (const char* filename);
21
22}; // namespace mlib
const char * dirname(const char *filename)
Return a pointer to pathname of the file deleting any trailing '\' character.
Definition basename.cpp:67
const char * basename(const char *filename)
Return a pointer to the filename without any path component.
Definition basename.cpp:30