__xpg_basename

Name

__xpg_basename -- return the last component of a file name

Synopsis

#include <libgen.h>

char * __xpg_basename(const char * path);

Description

The __xpg_basename() function shall return a pointer to the final component of the pathname named by path, as described in POSIX 1003.1-2008 (ISO/IEC 9945-2009) basename().

This function is not in the source standard, it is only in the binary standard.

Return Value

See POSIX 1003.1-2008 (ISO/IEC 9945-2009).