Back to index

glibc  2.9
Defines | Functions
basename.c File Reference
#include <string.h>

Go to the source code of this file.


#define basename   gnu_basename


char * basename (char *filename) const

Define Documentation

#define basename   gnu_basename

Definition at line 29 of file basename.c.

Function Documentation

char* basename ( char *  filename) const

Definition at line 34 of file basename.c.

  char *p = strrchr (filename, '/');
  return p ? p + 1 : (char *) filename;

Here is the call graph for this function:

Here is the caller graph for this function: