static char sccsid
[] = " okplay.c 4.1 82/05/11 ";
execv("/usr/games/lib/adventure", argv
);
write(2, "No adventure just now\n", 22);
int seconds
,minutes
,hours
,daymo
,month
,year
,daywk
,dayyr
,dst
;
if (local
->daywk
== 6||local
->daywk
== 0)
if (local
->hours
>=9&&local
->hours
<18)
if (!holiday(local
->month
, local
->daymo
))
np
= "/usr/games/holiday/XXXX";
return(stat(np
,stbuf
) == 0);
char notinm
[] "No adventure in prime time (M-F 9am-5pm) except on holidays\n";
write(2, notinm
, sizeof notinm
);
fd
= open("/usr/games/lib/advmotd", 0);
while(read(fd
,&ch
,1) ==1) write(1,&ch
,1);