Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ functions
Functions
8,785 in github.com/NetHack/NetHack
⨍
Functions
8,785
◇
Types & classes
2,379
↓ 2,040 callers
Function
pline
src/pline.c:101
↓ 1,717 callers
Function
rn2
0 <= rn2(x) < x */
src/rnd.c:94
↓ 1,238 callers
Function
You
src/pline.c:365
↓ 651 callers
Function
impossible
src/pline.c:583
↓ 581 callers
Function
Monnam
src/do_name.c:1073
↓ 501 callers
Function
rnd
1 <= rnd(x) <= x */
src/rnd.c:154
↓ 457 callers
Function
GetNHApp
win/win32/NetHackW.c:254
↓ 437 callers
Function
eos
return the end of a string (pointing at '\0') */
src/hacklib.c:193
↓ 420 callers
Function
newsym
* newsym() * * Possibly put a new glyph at the given location. */
src/display.c:916
↓ 322 callers
Function
pline_The
src/pline.c:413
↓ 317 callers
Function
isok
src/cmd.c:4325
↓ 308 callers
Function
strncmpi
case-insensitive counted string comparison */ { aka strncasecmp }*/
src/hacklib.c:716
↓ 283 callers
Function
alloc
src/alloc.c:65
↓ 280 callers
Function
panic
sys/vms/vmsmail.c:537
↓ 279 callers
Function
mon_nam
src/do_name.c:1041
↓ 274 callers
Function
pline_mon
src/pline.c:137
↓ 271 callers
Function
GetNHApp
outdated/sys/wince/winhack.c:153
↓ 266 callers
Function
canseemon
src/display.c:200
↓ 262 callers
Function
exercise
src/attrib.c:488
↓ 239 callers
Function
add_menu
* Common code point leading into the interface-specific * add_menu() to allow single-spot adjustments to the parameters, * such as those done
src/windows.c:1784
↓ 230 callers
Function
You_feel
src/pline.c:387
↓ 228 callers
Function
Your
src/pline.c:376
↓ 209 callers
Function
fprintf
outdated/sys/wince/celib.c:761
↓ 200 callers
Function
body_part
src/polyself.c:2142
↓ 200 callers
Function
xname
src/objnam.c:574
↓ 182 callers
Function
d
d(N,X) == NdX == dX+dX+...+dX N times; n <= d(n,x) <= (n*x) */
src/rnd.c:174
↓ 175 callers
Function
an
src/objnam.c:2144
↓ 172 callers
Function
config_error_add
src/cfgfiles.c:1862
↓ 172 callers
Function
t_at
src/trap.c:6501
↓ 161 callers
Function
dupstr
strdup() which uses our alloc() rather than libc's malloc(); not used when MONITOR_HEAP is enabled, but included unconditionally in case utility
src/alloc.c:237
↓ 159 callers
Function
s_suffix
return a name converted to possessive */
src/hacklib.c:344
↓ 149 callers
Function
strstri
case-insensitive substring search */
src/hacklib.c:739
↓ 145 callers
Function
verbalize
Print a message inside double-quotes. * The caller is responsible for checking deafness. * Gods can speak directly to you in spite of deafness. */
src/pline.c:475
↓ 138 callers
Function
makeplural
Plural routine; once upon a time it may have been chiefly used for * user-defined fruits, but it is now used extensively throughout the * program.
src/objnam.c:2835
↓ 137 callers
Function
You_hear
src/pline.c:435
↓ 137 callers
Function
mongets
src/makemon.c:2180
↓ 132 callers
Function
sgn
src/hacklib.c:646
↓ 123 callers
Function
update_inventory
persistent inventory window is maintained by interface code; 'update_inventory' used to be a macro for (*windowprocs.win_update_inventory) but t
src/invent.c:2781
↓ 122 callers
Function
in_rooms
src/hack.c:3497
↓ 120 callers
Function
printf
outdated/sys/wince/celib.c:822
↓ 118 callers
Function
is_pool
src/dbridge.c:45
↓ 113 callers
Function
nomul
src/hack.c:4160
↓ 112 callers
Function
the
* Prepend "the" if necessary; assumes str is a subject derived from xname. * Use type_is_pname() for monster names, not the(). the() is idempotent.
src/objnam.c:2170
↓ 112 callers
Function
which_armor
src/worn.c:1005
↓ 110 callers
Function
visctrl
make a displayable string from a character */
src/hacklib.c:468
↓ 109 callers
Function
obj_extract_self
* Free obj from whatever list it is on in preparation for deleting it * or moving it elsewhere; obj->where will end up set to OBJ_FREE unless * it i
src/mkobj.c:2556
↓ 108 callers
Function
raw_print
sys/vms/vmsmail.c:544
↓ 108 callers
Function
raw_printf
src/pline.c:548
↓ 106 callers
Function
fclose
outdated/sys/wince/celib.c:861
↓ 106 callers
Function
select_menu
src/windows.c:1855
↓ 101 callers
Function
losehp
src/hack.c:4255
↓ 101 callers
Function
nhl_add_table_entry_int
src/nhlua.c:290
↓ 100 callers
Function
cmdq_add_ec
add extended command function to the command queue */
src/cmd.c:253
↓ 100 callers
Function
nhl_error
src/nhlua.c:198
↓ 100 callers
Function
sobj_at
try to find a particular type of object at designated map location */
src/invent.c:1465
↓ 98 callers
Function
You_cant
src/pline.c:402
↓ 98 callers
Method
width
win/Qt/qt_glyph.h:23
↓ 97 callers
Function
weight
* Calculate the weight of the given object. This will recursively follow * and calculate the weight of any containers. * * Note: It is possibl
src/mkobj.c:1887
↓ 93 callers
Function
livelog_printf
src/pline.c:513
↓ 93 callers
Function
surface
src/dungeon.c:1749
↓ 91 callers
Function
makemon
* called with [x,y] = coordinates; * [0,0] means anyplace * [u.ux,u.uy] means: near player (if !gi.in_mklev) * * In case we make a
src/makemon.c:1146
↓ 89 callers
Function
hliquid
if hallucinating, return a random liquid instead of 'liquidpref' */
src/do_name.c:1492
↓ 89 callers
Function
lowc
force 'c' into lowercase */
src/hacklib.c:82
↓ 87 callers
Method
height
win/Qt/qt_glyph.h:24
↓ 87 callers
Function
place_object
put the object at the given location */
src/mkobj.c:2304
↓ 86 callers
Function
tmp_at
src/display.c:1173
↓ 85 callers
Function
add_menu_str
insert a non-selectable, unhighlighted line of text into a menu */
src/windows.c:1831
↓ 83 callers
Function
pmname
src/do_name.c:1302
↓ 82 callers
Function
on_level
are "lev1" and "lev2" actually the same? */
src/dungeon.c:1438
↓ 81 callers
Function
vtense
return form of the verb (input plural) for present tense 3rd person subj */
src/objnam.c:2562
↓ 79 callers
Function
doname
src/objnam.c:1753
↓ 78 callers
Function
upstart
convert first character of a string to uppercase */
src/hacklib.c:113
↓ 76 callers
Function
Tobjnam
like aobjnam, but prepend "The", not count, and use xname */
src/objnam.c:2289
↓ 75 callers
Function
depth
returns the depth of a level, in floors below the surface (note levels in different dungeons can have the same depth) */
src/dungeon.c:1430
↓ 75 callers
Function
highc
force 'c' into uppercase */
src/hacklib.c:75
↓ 75 callers
Function
otense
return form of the verb (input plural) if xname(otmp) were the subject */
src/objnam.c:2530
↓ 74 callers
Function
dist2
square of Euclidean distance between pair of pts */
src/hacklib.c:672
↓ 73 callers
Function
useup
an item in inventory is going away after being used */
src/invent.c:1320
↓ 73 callers
Method
width
outdated/win/Qt3/qt3_win.h:276
↓ 72 callers
Function
fqname
ARGSUSED*/
src/files.c:353
↓ 72 callers
Function
strsubst
substitute a word or phrase in a string (in place); caller is responsible for ensuring that bp points to big enough buffer */
src/hacklib.c:535
↓ 71 callers
Method
height
outdated/win/Qt3/qt3_win.h:281
↓ 70 callers
Function
shieldeff
* shieldeff() * * Put magic shield pyrotechnics at the given location. This *could* be * pulled into a platform dependent routine for fancier grap
src/display.c:1109
↓ 69 callers
Function
mksobj
mksobj(): create a specific type of object; result is always non-Null */
src/mkobj.c:1178
↓ 68 callers
Function
ia_addmenu
src/iactions.c:126
↓ 68 callers
Function
panic
sys/amiga/winchar.c:333
↓ 66 callers
Function
done
Be careful not to call panic from here! */
src/end.c:1019
↓ 66 callers
Function
glyph_at
* Utility routine for dowhatis() used to find out the glyph displayed at * the location. This isn't necessarily the same as the glyph in the levl *
src/display.c:2477
↓ 65 callers
Function
simpleonames
"scroll" or "scrolls" */
src/objnam.c:2427
↓ 64 callers
Function
Shknam
version of shkname() for beginning of sentence */
src/shknam.c:842
↓ 64 callers
Function
currency
src/invent.c:1545
↓ 63 callers
Function
from_what
src/attrib.c:902
↓ 63 callers
Function
hcolor
src/do_name.c:1460
↓ 63 callers
Function
yname
returns "[your ]xname(obj)" or "Foobar's xname(obj)" or "the xname(obj)" */
src/objnam.c:2358
↓ 62 callers
Function
shop_keeper
return the shopkeeper for rooms[rmno-2]; returns Null if there isn't one */
src/shk.c:1051
↓ 61 callers
Function
costly_spot
called in dokick.c when we kick an object that might be in a store */
src/shk.c:5349
↓ 61 callers
Function
stop_occupation
src/allmain.c:683
↓ 60 callers
Function
adjalign
avoid possible problems with alignment overflow, and provide a centralized location for any future alignment limits */
src/attrib.c:1297
↓ 60 callers
Function
monstunseesu
Monsters in line of sight forget hero resistance to M_SEEN_foo */
src/mondata.c:1571
↓ 60 callers
Function
obfree
called with two args on merge */
src/shk.c:1186
next →
1–100 of 8,785, ranked by callers