7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-01-08 20:14:23 +00:00
kicad/thirdparty/sentry-native/external/libunwindstack-ndk/compat/string.h
2022-04-02 01:21:55 +00:00

13 lines
197 B
C

// Compat header for missing `basename`
#pragma once
#include <string.h>
static const char *
_unwinder_basename(const char *s)
{
const char *c = strrchr(s, '/');
return c ? c + 1 : s;
}