~ubuntu-branches/ubuntu/hardy/renameutils/hardy

« back to all changes in this revision

Viewing changes to lib/dirname.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2006-07-21 16:39:15 UTC
  • mfrom: (1.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060721163915-k3kqs080hol8uw1n
Tags: 0.8.1-4
* Enable large file support on 32-bit platforms (closes: #377845)
* Bump Standards-Version up to 3.7.2 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  Take file names apart into directory and base names.
2
2
 
3
 
    Copyright (C) 1998, 2001, 2003, 2004 Free Software Foundation, Inc.
 
3
    Copyright (C) 1998, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
6
    it under the terms of the GNU General Public License as published by
14
14
 
15
15
    You should have received a copy of the GNU General Public License
16
16
    along with this program; if not, write to the Free Software Foundation,
17
 
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
17
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
18
 
19
19
#ifndef DIRNAME_H_
20
20
# define DIRNAME_H_ 1
31
31
# endif
32
32
 
33
33
# ifndef FILE_SYSTEM_PREFIX_LEN
34
 
#  define FILE_SYSTEM_PREFIX_LEN(Filename) 0
 
34
#  define FILE_SYSTEM_PREFIX_LEN(File_name) 0
35
35
# endif
36
36
 
37
37
# define IS_ABSOLUTE_FILE_NAME(F) ISSLASH ((F)[FILE_SYSTEM_PREFIX_LEN (F)])
38
38
# define IS_RELATIVE_FILE_NAME(F) (! IS_ABSOLUTE_FILE_NAME (F))
39
39
 
40
 
char *base_name (char const *path);
41
 
char *dir_name (char const *path);
42
 
size_t base_len (char const *path);
43
 
size_t dir_len (char const *path);
 
40
char *base_name (char const *file);
 
41
char *dir_name (char const *file);
 
42
size_t base_len (char const *file);
 
43
size_t dir_len (char const *file);
44
44
 
45
 
bool strip_trailing_slashes (char *path);
 
45
bool strip_trailing_slashes (char *file);
46
46
 
47
47
#endif /* not DIRNAME_H_ */