Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ cmdq_peek
Function
cmdq_peek
src/cmd.c:423–427 ·
view source on GitHub ↗
get the top entry without popping it */
Source
from the content-addressed store, hash-verified
421
422
/* get the top entry without popping it */
423
struct _cmd_queue *
424
cmdq_peek(int q)
425
{
426
return gc.command_queue[q];
427
}
428
429
/* clear all commands from the command queue */
430
void
Callers
5
dip_into
Function · 0.85
doremring
Function · 0.85
test_move
Function · 0.85
do_repeat
Function · 0.85
rhack
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_move
Function · 0.68