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

Function write

outdated/sys/wince/celib.c:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313int __cdecl write(int f, const void *buffer, unsigned int count)
314{
315 HANDLE p = get_file_handle(f);
316 DWORD bytes_written;
317 if (!WriteFile(p, buffer, count, &bytes_written, NULL))
318 return -1;
319 else
320 return (int) bytes_written;
321}
322
323int __cdecl rename(const char *oldname, const char *newname)
324{

Callers 15

winch_handlerFunction · 0.85
getlockFunction · 0.85
MAINFunction · 0.85
getlockFunction · 0.85
getlockFunction · 0.85
linux_maponFunction · 0.85
linux_mapoffFunction · 0.85
pcunix.cFile · 0.85
panictrace_handlerFunction · 0.85
recover_savefileFunction · 0.85
copy_bytesFunction · 0.85
bwriteFunction · 0.85

Calls 1

get_file_handleFunction · 0.85

Tested by

no test coverage detected