osdBasename

osdBasename

osd

1998 12-05


NAME

osdBasename - return the last element of a pathname


SYNOPSIS

char *osdBasename(char *path)

Given a pointer to a null-terminated character string that contains a pathname, basename returns a pointer to the last element of path. Trailing ``/'' characters are deleted.


If path or *path is zero, pointer to a static constant ``.'' is returned.


Note that this function may edit the contents of path itself.


Also note that this function expects the local format, so if a non-local path format is possible it should first be converted with osdConvertPathname().


ARGUMENTS


path The pathname in local format