aboutsummaryrefslogtreecommitdiffstats
path: root/lib/basename.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert1-131/+0
2006-03-26(base_name): New semantics - malloc the result.Jim Meyering1-26/+78
Preserve // when it is special. Preserve relative files that look like drive letters. (base_len): Preserve // when it is special. (last_component): New method, similar to old base_name semantics.
2005-09-22Sync from gnulib.Paul Eggert1-1/+1
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert1-2/+2
in comments or local variable names.
2005-05-14Update FSF postal mail address.Jim Meyering1-1/+1
2004-06-30(FILE_SYSTEM_PREFIX_LEN): Renamed fromJim Meyering1-3/+3
FILESYSTEM_PREFIX_LEN. All uses changed.
2003-09-10Include <string.h> unconditionally.Jim Meyering1-4/+4
2001-05-12Use "", not <> to include dirname.h.Jim Meyering1-1/+1
2001-05-12(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.Jim Meyering1-32/+40
Do not include <stdio.h>, <assert.h>; no longer needed. Include <string.h>, <dirname.h>. (base_name): Allow file names ending in slashes, other than names that are all slashes. In this case, return the basename followed by the slashes. This is more general, and can be used in places where the original base_name purposely had an assertion failure. (base_len): New function.
2001-01-16Include <stdio.h>, needed by assert on SunOS4.Jim Meyering1-1/+2
2000-07-29(base_name): Use ISSLASH rather than comparing against `/'.Jim Meyering1-1/+1
2000-07-23(base_name): Add an assertion.Jim Meyering1-0/+5
2000-07-09update copyright dateJim Meyering1-1/+1
1999-09-26(base_name): Add prototype. From Akim Demaille.Jim Meyering1-0/+10
1999-03-13*** empty log message ***Jim Meyering1-2/+1
1999-03-13(base_name): If NAME is all slashes, return `/' (inJim Meyering1-6/+18
conformance with the single unix spec). Reported by Peter Moulder.
1998-02-24capitalize macro params and protoizeJim Meyering1-4/+3
1998-02-24add copyrightJim Meyering1-1/+16
1997-06-29(base_name_strip_trailing_slashes): Remove.Jim Meyering1-68/+0
1997-06-29(base_name_strip_trailing_slashes): new function.Jim Meyering1-0/+68
1997-05-27Don't include backupfile.h.Jim Meyering1-4/+2
1997-05-27Update from FSF via patch-2.2.93.Jim Meyering1-27/+21
1996-07-15indent cpp-directivesJim Meyering1-1/+1
1996-07-15update FSF address in copyrightJim Meyering1-2/+2
1996-04-19(basename): Rewrite so it doesn't rely on strrchr,Jim Meyering1-14/+11
and hence doesn't need to include string.h -- on some alpha-based OSF systems, there's a conflicting prototype for basename in string.h. Reported by Kaveh Ghazi.
1995-05-13(basename): Make arg const.Jim Meyering1-2/+2
1995-01-27(basename): Use strrchr, not rindex.Jim Meyering1-3/+9
[!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
1992-11-01Initial revisionJim Meyering1-0/+35