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

Function findfirst_file

sys/msdos/msdos.c:385–397  ·  view source on GitHub ↗

* Functions to get filenames using wildcards */

Source from the content-addressed store, hash-verified

383 * Functions to get filenames using wildcards
384 */
385int
386findfirst_file(char *path)
387{
388 union REGS regs;
389 struct SREGS sregs;
390
391 regs.h.ah = FINDFIRST;
392 regs.x.cx = 0; /* attribute: normal files */
393 regs.x.dx = FP_OFF(path);
394 sregs.ds = FP_SEG(path);
395 intdosx(&regs, &regs, &sregs);
396 return !regs.x.cflag;
397}
398
399int
400findnext_file(void)

Callers 1

filesize_nhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected