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

Function mkstemp

src/mdlib.c:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372#ifndef HAS_NO_MKSTEMP
373#ifdef _MSC_VER
374int
375mkstemp(char *template)
376{
377 int err;
378
379 err = _mktemp_s(template, strlen(template) + 1);
380 if( err != 0 )
381 return -1;
382 return _open(template,
383 _O_RDWR | _O_BINARY | _O_TEMPORARY | _O_CREAT,
384 _S_IREAD | _S_IWRITE);
385}
386#endif /* _MSC_VER */
387#endif /* HAS_NO_MKSTEMP */
388#endif /* MAKEDEFS_C || FOR_RUNTIME */

Callers 1

getfpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected