find_object.c

MudOSa4DGD/mudlib/dgd/lib/sys/kfun/find_object.c · 394 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

/*
 * find_object.c
 *
 * Find the object at a path if it exists
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */


#ifdef DEFAULT_SRC_EXTENSION

/* find an object */
static object find_object(string file) {
  /* accept objectnames ending with ".c" */
  int i;
  if ((i=strlen(file)) >= 2 && file[i-2..] == DEFAULT_SRC_EXTENSION)
    file = file[0..i-3];

  return ::find_object(file);
}

#endif

Site Stats

Snippets: 1791
Codebases: 571