7 /* extract file basename
9 /* #include <stringops.h>
11 /* char *basename(path)
14 /* The \fBbasename\fR routine skips over the last '/' in
15 /* \fIpath\fR and returns a pointer to the result.
19 /* The Secure Mailer license must be distributed with this software.
22 /* IBM T.J. Watson Research
24 /* Yorktown Heights, NY 10598, USA
34 /* Utility library. */
36 #include "stringops.h"
38 /* basename - skip directory prefix */
40 char *basename(const char *path
)
44 if ((result
= strrchr(path
, '/')) == 0)
45 result
= (char *) path
;