mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-01-08 20:14:23 +00:00
13 lines
197 B
C
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;
|
|
}
|