|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 483 (0x1e3) Types: TextFile Names: »exits.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/src/exits.c«
#include <stdio.h> #include <strings.h> #include "sysdep.h" #include "mem.h" extern int root; char *sprintf(); goodbye(n) int n; { if (root) unlockpw(); msg(""); nocbreak(); exit(n); } fatal(s) char *s; { char fatalmsg[LONG_BUF]; (void) sprintf(fatalmsg, "%s\n", s); msg(fatalmsg); goodbye(1); } fatal1(fmt, s1) char *fmt, *s1; { char fatalmsg[LONG_BUF]; (void) sprintf(fatalmsg, fmt, s1); (void) strcat(fatalmsg, "\n"); msg(fatalmsg); goodbye(1); return; }