Blame lib/dirname.h

Packit Service fdd496
/*  Take file names apart into directory and base names.
Packit Service fdd496
Packit Service fdd496
    Copyright (C) 1998, 2001, 2003-2006, 2009-2017 Free Software Foundation,
Packit Service fdd496
    Inc.
Packit Service fdd496
Packit Service fdd496
    This program is free software: you can redistribute it and/or modify
Packit Service fdd496
    it under the terms of the GNU General Public License as published by
Packit Service fdd496
    the Free Software Foundation; either version 3 of the License, or
Packit Service fdd496
    (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
    This program is distributed in the hope that it will be useful,
Packit Service fdd496
    but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
    GNU General Public License for more details.
Packit Service fdd496
Packit Service fdd496
    You should have received a copy of the GNU General Public License
Packit Service fdd496
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#ifndef DIRNAME_H_
Packit Service fdd496
# define DIRNAME_H_ 1
Packit Service fdd496
Packit Service fdd496
# include <stdbool.h>
Packit Service fdd496
# include <stddef.h>
Packit Service fdd496
# include "dosname.h"
Packit Service fdd496
Packit Service fdd496
# ifndef DIRECTORY_SEPARATOR
Packit Service fdd496
#  define DIRECTORY_SEPARATOR '/'
Packit Service fdd496
# endif
Packit Service fdd496
Packit Service fdd496
# ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
Packit Service fdd496
#  define DOUBLE_SLASH_IS_DISTINCT_ROOT 0
Packit Service fdd496
# endif
Packit Service fdd496
Packit Service fdd496
#ifdef __cplusplus
Packit Service fdd496
extern "C" {
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
# if GNULIB_DIRNAME
Packit Service fdd496
char *base_name (char const *file);
Packit Service fdd496
char *dir_name (char const *file);
Packit Service fdd496
# endif
Packit Service fdd496
Packit Service fdd496
char *mdir_name (char const *file);
Packit Service fdd496
size_t base_len (char const *file) _GL_ATTRIBUTE_PURE;
Packit Service fdd496
size_t dir_len (char const *file) _GL_ATTRIBUTE_PURE;
Packit Service fdd496
char *last_component (char const *file) _GL_ATTRIBUTE_PURE;
Packit Service fdd496
Packit Service fdd496
bool strip_trailing_slashes (char *file);
Packit Service fdd496
Packit Service fdd496
#ifdef __cplusplus
Packit Service fdd496
} /* extern "C" */
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#endif /* not DIRNAME_H_ */