4 * Cross-platform basename/dirname
6 * Copyright 2005 Syd Logan, All Rights Reserved
8 * This code is distributed without warranty. You are free to use this
9 * code for any purpose, however, if this code is republished or
10 * redistributed in its original form, as hardcopy or electronically,
11 * then you must include this copyright notice along with the code.
15 // minor changes 2008 by Stefan Ludewig stefan.ludewig@exitgames.com for WIN32 version RRDtool
17 #if !defined(__PL_BASENAME_H__)
18 #define __PL_BASENAME_H__
22 "/usr/lib" "/usr" "lib"
30 #if defined(__cplusplus)
34 const char *PL_basename(const char *name);
35 const char *PL_dirname(const char *name);
37 #define basename(name) ((char*)PL_basename(name))
38 #define dirname(name) ((char*)PL_dirname(name))
40 #if defined(__cplusplus)