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

Function findfirst

outdated/sys/os2/os2.c:231–252  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

229static HDIR DirHandle;
230
231int
232findfirst(path)
233char *path;
234{
235#ifdef OS2_32BITAPI
236 ULONG
237#else
238 USHORT
239#endif
240 res, SearchCount = 1;
241
242 DirHandle = 1;
243 res =
244#ifdef OS2_32BITAPI
245 DosFindFirst((PSZ) path, &DirHandle, 0L, (PVOID) &ResultBuf,
246 (ULONG) sizeof(ResultBuf), &SearchCount, 1L);
247#else
248 DosFindFirst((PSZ) path, &DirHandle, 0, &ResultBuf,
249 (USHORT) sizeof(ResultBuf), &SearchCount, 0L);
250#endif
251 return (!res);
252}
253
254int
255findnext()

Callers 1

filesizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected