/* Take file names apart into directory and base names.12Copyright (C) 1998, 2001, 2003 Free Software Foundation, Inc.34This program is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2, or (at your option)7any later version.89This program is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with this program; if not, write to the Free Software Foundation,16Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */1718#ifndef DIRNAME_H_19# define DIRNAME_H_ 12021# include <stddef.h>2223# ifndef DIRECTORY_SEPARATOR24# define DIRECTORY_SEPARATOR '/'25# endif2627# ifndef ISSLASH28# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR)29# endif3031# ifndef FILESYSTEM_PREFIX_LEN32# define FILESYSTEM_PREFIX_LEN(Filename) 033# endif3435char *base_name (char const *path);36char *dir_name (char const *path);37size_t base_len (char const *path);38size_t dir_len (char const *path);3940int strip_trailing_slashes (char *path);4142#endif /* not DIRNAME_H_ */434445