MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_file_handle

Function get_file_handle

outdated/sys/wince/celib.c:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96static int file_pointer = -1;
97
98static HANDLE
99get_file_handle(int i)
100{
101 i -= MAGIC_OFFSET;
102 if (i >= 0 && i < FILE_TABLE_SIZE)
103 return _nh_file_table[i];
104 else
105 return INVALID_HANDLE_VALUE;
106}
107
108static int
109alloc_file_handle(HANDLE h)

Callers 4

eofFunction · 0.85
lseekFunction · 0.85
readFunction · 0.85
writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected