bl/utils.h
author ali <ali@juiblex.co.uk>
Fri Jan 27 10:30:16 2012 +0000 (2012-01-27)
changeset 5 f600b0d1fc5d
parent 0 gclib/utils.h@c2f4c0285180
permissions -rw-r--r--
Rename to bookloupe
ali@5
     1
#ifndef BL_UTIL_H
ali@5
     2
#define BL_UTIL_H
ali@0
     3
ali@0
     4
#ifdef WIN32
ali@5
     5
#define BL_DIR_SEPARATOR '\\'
ali@5
     6
#define BL_DIR_SEPARATOR_S "\\"
ali@5
     7
#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR || (c)=='/')
ali@0
     8
#else
ali@5
     9
#define BL_DIR_SEPARATOR '/'
ali@5
    10
#define BL_DIR_SEPARATOR_S "/"
ali@5
    11
#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR)
ali@0
    12
#endif
ali@0
    13
ali@0
    14
char *path_get_basename(const char *filename);
ali@0
    15
ali@5
    16
#endif /* BL_UTIL_H */