[comp.os.os9] Questions on o2utime

jeffr@bcs800.UUCP (Jeff Riegel) (10/24/90)

################################################################################

/*	@(#)help.c	1.0	*/
/*
** why doesn't this work ???
*/

#include	<stdio.h>
#include	<direct.h>

main(argc,argv)
int 	argc;
char 	*argv[];
{
long	st_adate;
struct fildes fdbuf;
char	tbuf[6];
pflinit();


	if ((fd = open(argv[1],1)) < 0)
		exit(1);

	_gs_gfd(fd,&fdbuf,sizeof(struct fildes)); 

	strncpy(tbuf,fdbuf.fd_date,5);
	tbuf[5] = 0;

	st_adate = o2utime(&tp)
	printf("the time in seconds is %ld\n",st_adate);

	printf("%s\n",ctime(&st_adate));
}

Any ideas why this dosn't work.....
Thanks in advance
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Jeff Riegel                 |     uucp: ...!gatech!emory!bcs800!jeffr
 Technical Support           | 	   delphi: j2
 tel: +800 444 3070          |     A process is a terrible thing to waste!