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

Function do_options

util/makedefs.c:1968–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1966}
1967
1968void
1969do_options(void)
1970{
1971 const char *optline;
1972 int infocontext = 0;
1973
1974 windowing_sanity();
1975 filename[0] = '\0';
1976#ifdef FILE_PREFIX
1977 Strcat(filename, file_prefix);
1978#endif
1979 Sprintf(eos(filename), DATA_TEMPLATE, OPTIONS_FILE);
1980 if (!(ofp = fopen(filename, WRTMODE))) {
1981 perror(filename);
1982 makedefs_exit(EXIT_FAILURE);
1983 /*NOTREACHED*/
1984 }
1985 while ((optline = do_runtime_info(&infocontext)) != 0)
1986 Fprintf(ofp, "%s\n", optline);
1987 Fclose(ofp);
1988 return;
1989}
1990
1991static void
1992windowing_sanity(void)

Callers 1

do_makedefsFunction · 0.85

Calls 4

windowing_sanityFunction · 0.85
eosFunction · 0.85
makedefs_exitFunction · 0.85
do_runtime_infoFunction · 0.85

Tested by

no test coverage detected