Blob: missing.h
Blob id: 464df9b1c30cb280322e7c620ebbd70f04de95b4
Size: 393 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // SPDX-License-Identifier: LGPL-2.1-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2024 Khem Raj <raj.khem@gmail.com> * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #if !HAVE_DECL_BASENAME #include <string.h> static inline const char *basename(const char *path) { const char *base = strrchr(path, '/'); return base ? base + 1 : path; } #endif |