summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_basename.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 23:52:13 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 23:52:13 -0300
commit3179089b49f45a6f45165e1b7741bb292ef0a127 (patch)
tree86caf9845b2dcf87e234ad87995e61e974fcafec /src/lib/evil/evil_basename.c
parentd7fa5eab995958efd90ad63f48cf831c79099107 (diff)
windows: Create basename functiondevs/felipealmeida/fix-eina-dll-export
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}