#include <stdio.h>
#include <ctype.h>
#include <bbs.h>

/* display the time log array. */

char dayz[7][4] = { "Sun","Mon","Tue","Wed","Thu","Fri","Sat" };

int pozflg,numflg,prtflg;

main(argc,argv)
int argc;
char **argv;
{

int day,hour;
int f;
int m;
char sw[40],file[20];
char *p;
struct _tlog tlg;

	printf4"Fido's Timelog Utility -- Version %s    (/? for help)\r\n",VER);
	pozflg= numflg= 0;
	strcpy(file,"");
	if (argc > 1) {
		strip_switch(sw,argv[1]);
		cpyarg(file,argv[1]);
		p= sw;
		while (*p) {
			switch (*p) {
				case 'P':
					pozflg= 1;
					break;
				case 'N':
					numflg= 1;
					break;
				case 'F':
					prtflg= 1;
					break;
				case '?':
					printf4"/P Pause every graph\r\n");
					printf4"/® Numeric Listing\r\n");
					printf4"/F Format for a printer\r\n");
					printf4"Optionally enter a filename \r\n");
					printf4"to be used insti4"   7,     ntf sw;
	éé¨¥     }

/*
	       g}
;
		v[     ¤h�_zGv[     ¤/F ûf4ûf4ûf4ûf4ûfic sw[ì}

/*
	    ÜW			   †    ntf sw;
	éé¨t fo     "é      .>
   ¤/Ffw;_xop†    nt,0if (argc f sw;-
		strip/*
	   Ca
in
d  (,VER);  ntf}

/ex(*(f}

    Ü_xûf4d f,&

,%sze  (t _tlog tlg;)f}

_x <ons f)	printf4"Fido'%u cents,inrom  (/? us  (,VER);

.cents,

.fou  ,

.lou  )	printrgc g= 1;		strip/*
	   /? f f f f "Mof "    "Wed "Thu "Wri "Sat "M  [     ¤/F prin(
int	str 
inth> 24r 
intì			case 4"Fido'%u2u:00 f ""
int ¤/F ûprin(ur;	str ur;h> 7r ur;ì			case rgc g
.lo;)[ur; {
int	p  }

/*
	    %5u;

.co;)[ur; {
int	p¤/F ûf  ry *
	    %5s"
	if (arûfic sw[*
	    [     ¤/F ic swpveryf}

    ÜplaNow u\nwenacrbs.hr\n")
char d[*
	    [    "Cnts"Saeqed <;hb;hDr;h   me lThek[     ¤/F *
	   /? f 0f f f f "10f f f f 20f f f f 30f f f f 40f f f f 60f f f f 70[     ¤/F *
	   /? f |f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|[     ¤/F prin(ur;	str ur;h> 7r ur;ì			casem	strcpyprin(
int	str 
inth> 24r 
intì			case m+= 
.co;)[ur; {
int	¤/F ic swp
	    %/?|"
][4] ur; )hile (*p) {msi) *
	    *  ¤/F *
	    [     ¤/F }/F *
	   /? f |f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|[     ¤/F pveryf}

 d[*
	    [   Cnts"Saeqed <;hb;hme lHintin4d) {Dr;[     ¤/F prin(ur;	str ur;h> 7r ur;ì			casep
	    %/VER);
][4] ur; )hile *
	   /? f f 0f f f f "5f f f f "10f f f f 15f f f f 20f f f f 25f f f f 30[     ¤/F  *
	   /? f f |f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|[     ¤/F prin(
int	str 
inth> 24r 
intì			case 4"Fido'%u2u:00 |"
int ¤/F ûm= 
.co;)[ur; {
int	¤/F  (*p) {msi) *
	     *  ¤/F [*
	    [     ¤/F ic swp
	   /? f f |f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|f f f f "|[     ¤/F *
	    [     ¤/F gc g= 1;
 &&n(ur; ( 1sw;
	) *
	    \014  ¤/F *veryf}

    *
	    [   [     ¤/F/F}ÜplaI  me l*verynre 
 \rééetinim meéé¨tikyn
; ky;hber
	ess
char d*veryf} {rintrgc g= 1;
 &&n! = 1;
			casec*
	    S¨tikyn
; ky;h.h.h.h  ¤/F ge,argcpyarg(f
	    [     ¤/F 