lib/basename.c


Log

Author Commit Date CI Message
Jim Meyering 0784f9d5 2001-05-12T15:39:45 Use "", not <> to include dirname.h.
Jim Meyering aa4998c8 2001-05-12T14:23:49 (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h. 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.
Jim Meyering 832f6a75 2001-01-16T08:34:45 Include <stdio.h>, needed by assert on SunOS4.
Jim Meyering 0730bbc6 2000-07-29T16:45:30 (base_name): Use ISSLASH rather than comparing against `/'.
Jim Meyering f7d19549 2000-07-23T09:25:14 (base_name): Add an assertion.
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 16501f4c 1999-09-26T18:37:02 (base_name): Add prototype. From Akim Demaille.
Jim Meyering cd988caa 1999-03-13T16:19:18 *** empty log message ***
Jim Meyering 19a0a43a 1999-03-13T16:09:00 (base_name): If NAME is all slashes, return `/' (in conformance with the single unix spec). Reported by Peter Moulder.
Jim Meyering 18ab6ee1 1998-02-24T22:59:34 capitalize macro params and protoize
Jim Meyering 8113e5c5 1998-02-24T22:58:26 add copyright
Jim Meyering e860cd16 1997-06-29T22:26:18 (base_name_strip_trailing_slashes): Remove.
Jim Meyering c34b054f 1997-06-29T22:25:54 (base_name_strip_trailing_slashes): new function.
Jim Meyering 0fb5d9e2 1997-05-27T14:16:49 Don't include backupfile.h.
Jim Meyering 56a7a671 1997-05-27T09:39:25 Update from FSF via patch-2.2.93.
Jim Meyering 783c1624 1996-07-15T03:56:06 indent cpp-directives
Jim Meyering 6d8337bf 1996-07-15T03:36:16 update FSF address in copyright
Jim Meyering 3751b3e9 1996-04-19T04:41:27 (basename): Rewrite so it doesn't rely on strrchr, 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.
Jim Meyering efa6ff05 1995-05-13T12:52:57 (basename): Make arg const.
Jim Meyering 3b8ba971 1995-01-27T15:23:48 (basename): Use strrchr, not rindex. [!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
Jim Meyering 43e78b97 1992-11-01T05:44:30 Initial revision