1: #include "hd.h" 2: 3: date () { /* display current date */ 4: 5: long datetime [1]; 6: 7: time (datetime); clearmsg (1); 8: printf (" %.24s", ctime (datetime)); 9: return NOREPLOT; 10: } 11: 12: callshell (argv) char **argv; { 13: 14: if (argv[0]) { 15: mysystem (argv[0]); 16: getrtn (); 17: } 18: else f_exec (envshell, envshell, 0); 19: return REPLOT; 20: }