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

Function dosh

sys/amiga/amidos.c:89–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88#ifdef SHELL
89int
90dosh(void)
91{
92 int i = 0;
93 char buf[BUFSZ];
94 extern struct ExecBase *SysBase;
95
96 /* Only under 2.0 and later ROMs do we have System() */
97 if (SysBase->LibNode.lib_Version >= 37 && !amibbs) {
98 getlin("Enter CLI Command...", buf);
99 if (buf[0] != '\033')
100 i = System(buf, NULL);
101 } else {
102 i = 0;
103 pline("No mysterious force prevented you from using multitasking.");
104 }
105 return i;
106}
107#endif /* SHELL */
108
109#ifdef MFLOPPY

Callers

nothing calls this directly

Calls 2

getlinFunction · 0.85
plineFunction · 0.50

Tested by

no test coverage detected