2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 char *__xpg_basename(register char *path
)
12 static const char null_or_empty
[] = ".";
16 first
= (char *) null_or_empty
;
23 if ((*path
!= '/') && (path
> ++last
)) {
38 weak_alias(__xpg_basename
,basename
)