Path: utzoo!attcan!uunet!wuarchive!emory!wa4mei!bcs800!jeffr From: jeffr@bcs800.UUCP (Jeff Riegel) Newsgroups: comp.sys.m68k Subject: Question on o2unix Keywords: os9 o2unix Message-ID: <1093@bcs800.UUCP> Date: 26 Oct 90 13:50:23 GMT Organization: Brock Control Systems, Atlanta, Georgia Lines: 43 ################################################################################ /* @(#)help.c 1.0 */ /* ** why doesn't this work ??? */ #include #include 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 doesn't work..... I get an negative number of seconds. The ctime is just a test to see if the program actualy worked. 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!