MCPcopy Index your code
hub / github.com/NetHack/NetHack / read

Function read

outdated/sys/wince/celib.c:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286int __cdecl read(int f, void *buffer, unsigned int count)
287{
288 HANDLE p = get_file_handle(f);
289 DWORD bytes_read;
290 if (!ReadFile(p, buffer, count, &bytes_read, NULL))
291 return -1;
292 else
293 return (int) bytes_read;
294}
295
296int __cdecl unlink(const char *filename)
297{

Callers 12

tty_nhgetchFunction · 0.85
veryoldFunction · 0.85
veryoldFunction · 0.85
crashreport_initFunction · 0.85
recover_savefileFunction · 0.85
copy_bytesFunction · 0.85
mreadFunction · 0.85
_copyfileFunction · 0.85
fgetcFunction · 0.85
freadFunction · 0.85
mainFunction · 0.85
restore_savefileFunction · 0.85

Calls 1

get_file_handleFunction · 0.85

Tested by

no test coverage detected