Back to index

cell-binutils  2.17cvs20070401
lbasename.c File Reference
#include "ansidecl.h"
#include "libiberty.h"
#include "safe-ctype.h"
#include "filenames.h"

Go to the source code of this file.


const char * lbasename (const char *name)

Function Documentation

const char* lbasename ( const char *  name)

Definition at line 49 of file lbasename.c.

  const char *base;

  /* Skip over a possible disk name.  */
  if (ISALPHA (name[0]) && name[1] == ':') 
    name += 2;

  for (base = name; *name; name++)
    if (IS_DIR_SEPARATOR (*name))
      base = name + 1;

  return base;

Here is the caller graph for this function: