summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_basename.c
blob: 8e51910749ba37241e3923ad387f8288786a3e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */

#include <evil_api.h>

#include <stdlib.h>

#include <evil_windows.h>

EVIL_API char* basename (char* path)
{
  static char base[MAX_PATH];
  _splitpath_s (path, NULL, 0, NULL, 0, base, MAX_PATH, NULL, 0);
  return base;
}