File src/hacklib.c


Included Files


Preprocessor definitions

#define Static static

#define TABSIZ 0x20


Global Function digit()

boolean digit ( char c )
Prototyped in: include/extern.h

Global Function dist2()

int dist2 ( int x0, int y0, int x1, int y1 )
Prototyped in: include/extern.h
Called by: artifact_hit()src/artifact.c
  boulder_hits_pool()src/do.c
  breakobj()src/dothrow.c
  check_leash()src/apply.c
  close_drawbridge()src/dbridge.c
  dig()src/dig.c
  display_monster()src/display.c
  display_warning()src/display.c
  do_mname()src/do_name.c
  dog_goal()src/dogmove.c
  dog_move()src/dogmove.c
  dokick()src/dokick.c
  domove()src/hack.c
  done_in_by()src/end.c
  dosearch0()src/detect.c
  drag_ball()src/ball.c
  explode()src/explode.c
  feel_location()src/display.c
  findone()src/detect.c
  goto_level()src/do.c
  jump()src/apply.c
  lookaround()src/hack.c
  monster_nearby()src/hack.c
  moverock()src/hack.c
  newsym()src/display.c
  next_to_u()src/apply.c
  open_drawbridge()src/dbridge.c
  openone()src/detect.c
  spoteffects()src/hack.c
  use_grapple()src/apply.c
  use_leash()src/apply.c
  use_magic_whistle()src/apply.c
  use_pole()src/apply.c
  use_stethoscope()src/apply.c
  use_whip()src/apply.c
  wantdoor()src/dogmove.c
  x_monnam()src/do_name.c

Global Function distmin()

int distmin ( int x0, int y0, int x1, int y1 )
Prototyped in: include/extern.h
Called by: gush()src/fountain.c
  thitmonst()src/dothrow.c

Global Function eos()

char* eos ( char* s )
Prototyped in: include/extern.h
Called by: bot1()src/botl.c
  bot2()src/botl.c
  done()src/end.c
  done_in_by()src/end.c
  enlightenment()src/cmd.c
  lev_by_name()src/dungeon.c
  list_vanquished()src/end.c
  otransit_msg()src/dokick.c
  parse_config_line()src/files.c
  print_dungeon()src/dungeon.c
  readlibdir()src/dlb.c
  revive_corpse()src/do.c
  s_suffix()src/hacklib.c
  set_bonesfile_name()src/files.c
  set_bonestemp_name()src/files.c
  set_levelfile_name()src/files.c
  use_candle()src/apply.c
  welcome()src/allmain.c
  x_monnam()src/do_name.c

Global Function friday_13th()

boolean friday_13th ( void )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c
Called by: moveloop()src/allmain.c

Global Function fuzzymatch()

boolean fuzzymatch ( const char* s1, const char* s2, const char* ignore_chars, boolean caseblind )
Prototyped in: include/extern.h
Calls: lowc()src/hacklib.c
  strchr()

Global Function getyear()

int getyear ( void )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c

Global Function highc()

char highc ( char c )
Prototyped in: include/extern.h
Called by: Adjmonnam()src/do_name.c
  Amonnam()src/do_name.c
  Monnam()src/do_name.c
  do_oname()src/do_name.c
  noit_Monnam()src/do_name.c

Global Function lcase()

char* lcase ( char* s )
Prototyped in: include/extern.h
Called by: x_monnam()src/do_name.c

Global Function letter()

boolean letter ( char c )
Prototyped in: include/extern.h

Global Function lowc()

char lowc ( char c )
Prototyped in: include/extern.h
Called by: do_oname()src/do_name.c
  fuzzymatch()src/hacklib.c
  getpos()src/do_name.c
  rhack()src/cmd.c
  strncmpi()src/hacklib.c
  strstri()src/hacklib.c

Global Function midnight()

int midnight ( void )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c
Called by: check_special_room()src/hack.c

Global Function mungspaces()

char* mungspaces ( char* bp )
Prototyped in: include/extern.h
Called by: do_mname()src/do_name.c
  do_oname()src/do_name.c
  docall()src/do_name.c

Global Function night()

int night ( void )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c
Called by: moveloop()src/allmain.c
  tamedog()src/dog.c

Global Function online2()

boolean online2 ( int x0, int y0, int x1, int y1 )
Prototyped in: include/extern.h

Global Function onlyspace()

boolean onlyspace ( const char* s )
Prototyped in: include/extern.h

Global Function ordin()

const char* ordin ( int n )
Prototyped in: include/extern.h
Called by: enlightenment()src/cmd.c

Global Function phase_of_the_moon()

int phase_of_the_moon ( void )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c
Called by: moveloop()src/allmain.c

Global Function pmatch()

boolean pmatch ( const char* patrn, const char* strng )
Prototyped in: include/extern.h
Calls: pmatch()src/hacklib.c
Called by: pmatch()src/hacklib.c

Global Function rounddiv()

int rounddiv ( long x, int y )
Prototyped in: include/extern.h
Calls: panic()src/end.c
Called by: doeat()src/eat.c

Global Function s_suffix()

char* s_suffix ( const char* s )
Prototyped in: include/extern.h
Calls: eos()src/hacklib.c
  strncmpi()src/hacklib.c
  strcat(), strcpy()
Called by: artifact_hit()src/artifact.c
  check_leash()src/apply.c
  dopickup()src/hack.c
  drop()src/do.c
  eatcorpse()src/eat.c
  fig_transform()src/apply.c
  food_xname()src/eat.c
  keepdogs()src/dog.c
  thitmonst()src/dothrow.c
  touch_artifact()src/artifact.c
  use_camera()src/apply.c
  use_lamp()src/apply.c
  use_mirror()src/apply.c
  use_whip()src/apply.c
  x_monnam()src/do_name.c
  zap_dig()src/dig.c

Global Function setrandom()

void setrandom ( void )
Prototyped in: include/extern.h
Calls: srand48(), time()

Global Function sgn()

int sgn ( int n )
Prototyped in: include/extern.h
Called by: click_to_cmd()src/cmd.c
  dig_up_grave()src/dig.c
  dog_move()src/dogmove.c
  exerchk()src/attrib.c
  gem_accept()src/dothrow.c
  getpos()src/do_name.c
  hurtle()src/dothrow.c
  spec_applies()src/artifact.c
  stone_luck()src/attrib.c
  touch_artifact()src/artifact.c
  use_grapple()src/apply.c

Global Function sitoa()

char* sitoa ( int n )
Prototyped in: include/extern.h
Calls: sprintf()

Global Function strncmpi()

int strncmpi ( const char* s1, const char* s2, int n )
Prototyped in: include/extern.h
Calls: lowc()src/hacklib.c
Called by: artifact_name()src/artifact.c
  extcmd_via_menu()src/cmd.c
  find_branch()src/dungeon.c
  find_level()src/dungeon.c
  lev_by_name()src/dungeon.c
  restrict_name()src/artifact.c
  s_suffix()src/hacklib.c
  title_to_mon()src/botl.c

Global Function strstri()

char* strstri ( const char* str, const char* sub )
Prototyped in: include/extern.h
Calls: lowc()src/hacklib.c
Called by: lev_by_name()src/dungeon.c
  sengr_at()src/engrave.c

Global Function tabexpand()

char* tabexpand ( char* sbuf )
Prototyped in: include/extern.h
Calls: strcpy()

Global Function visctrl()

char* visctrl ( char c )
Prototyped in: include/extern.h
Called by: getpos()src/do_name.c

Global Function xcrypt()

char* xcrypt ( const char* str, char* buf )
Prototyped in: include/extern.h

Global Function yyyymmdd()

long yyyymmdd ( time_t date )
Prototyped in: include/extern.h
Calls: getlt()src/hacklib.c
  localtime()

Local Function getlt()

static struct tm* getlt ( void )
Prototyped in: src/hacklib.c
Calls: localtime(), time()
Called by: friday_13th()src/hacklib.c
  getyear()src/hacklib.c
  midnight()src/hacklib.c
  night()src/hacklib.c
  phase_of_the_moon()src/hacklib.c
  yyyymmdd()src/hacklib.c