summaryrefslogtreecommitdiff
path: root/lib/basename.c
AgeCommit message (Collapse)Author
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names.
2005-05-14Update FSF postal mail address.Jim Meyering
2004-06-30(FILE_SYSTEM_PREFIX_LEN): Renamed fromJim Meyering
FILESYSTEM_PREFIX_LEN. All uses changed.
2003-09-10Include <string.h> unconditionally.Jim Meyering
2001-05-12Use "", not <> to include dirname.h.Jim Meyering
2001-05-12(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.Jim Meyering
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 Meyering
2000-07-29(base_name): Use ISSLASH rather than comparing against `/'.Jim Meyering
2000-07-23(base_name): Add an assertion.Jim Meyering
2000-07-09update copyright dateJim Meyering
1999-09-26(base_name): Add prototype. From Akim Demaille.Jim Meyering
1999-03-13*** empty log message ***Jim Meyering
1999-03-13(base_name): If NAME is all slashes, return `/' (inJim Meyering
conformance with the single unix spec). Reported by Peter Moulder.
1998-02-24capitalize macro params and protoizeJim Meyering
1998-02-24add copyrightJim Meyering
1997-06-29(base_name_strip_trailing_slashes): Remove.Jim Meyering
1997-06-29(base_name_strip_trailing_slashes): new function.Jim Meyering
1997-05-27Don't include backupfile.h.Jim Meyering
1997-05-27Update from FSF via patch-2.2.93.Jim Meyering
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1996-04-19(basename): Rewrite so it doesn't rely on strrchr,Jim Meyering
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 Meyering
1995-01-27(basename): Use strrchr, not rindex.Jim Meyering
[!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
1992-11-01Initial revisionJim Meyering