summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evil/evil_basename.c')
-rw-r--r--src/lib/evil/evil_basename.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/evil/evil_basename.c b/src/lib/evil/evil_basename.c
new file mode 100644
index 0000000000..8e51910749
--- /dev/null
+++ b/src/lib/evil/evil_basename.c
@@ -0,0 +1,16 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif /* HAVE_CONFIG_H */
4
5#include <evil_api.h>
6
7#include <stdlib.h>
8
9#include <evil_windows.h>
10
11EVIL_API char* basename (char* path)
12{
13 static char base[MAX_PATH];
14 _splitpath_s (path, NULL, 0, NULL, 0, base, MAX_PATH, NULL, 0);
15 return base;
16}