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

Function unlink

outdated/sys/wince/celib.c:296–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296int __cdecl unlink(const char *filename)
297{
298 TCHAR wbuf[MAX_PATH + 1];
299 TCHAR fname[MAX_PATH + 1];
300
301 ZeroMemory(wbuf, sizeof(wbuf));
302 ZeroMemory(fname, sizeof(fname));
303 NH_A2W(filename, wbuf, MAX_PATH);
304 if (*filename != '\\' && *filename != '/') {
305 _tcscpy(fname, _nh_cwd);
306 _tcsncat(fname, _T("\\"), MAX_PATH - _tcslen(fname));
307 }
308 _tcsncat(fname, wbuf, MAX_PATH - _tcslen(fname));
309
310 return !DeleteFileW(fname);
311}
312
313int __cdecl write(int f, const void *buffer, unsigned int count)
314{

Callers 15

mainFunction · 0.85
eraseoldlocksFunction · 0.85
eraseoldlocksFunction · 0.85
vms_creatFunction · 0.85
eraseoldlocksFunction · 0.85
EditColorFunction · 0.85
read_simplemailFunction · 0.85
delete_levelfileFunction · 0.85
commit_bonesfileFunction · 0.85
delete_bonesfileFunction · 0.85
delete_savefileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected