TIP: Click on subject to list as thread! ANSI
echo: cis.utilities
to: Brett Wynkoop 72057,3720 (X)
from: Mike Haaland 72300,1433
date: 1991-03-11 04:34:02
subject: #9756-OSK HELP needed

#: 9762 S9/Utilities
    11-Mar-91  04:34:02
Sb: #9756-OSK HELP needed
Fm: Mike Haaland 72300,1433
To: Brett Wynkoop 72057,3720 (X)

Brett,

I took a look at your code and found a couple of things you might have missed
in the manual.  First, the 'tm' time structure is defined under 'mktime()' in
the MW C manual.  tm_mon is the number of months AFTER january, so in order to
get the correct month add 1.  The code was also failing to compile cause there
is no headers 'utime.h' or 'lowio.h'. In order to get around that I used an
#ifdef OSK preprocessor directive to include the proper defines and headers for
OSK.  Also I changed the variable 'clock' to 'clck', cause clock is an OSK
function.  All the long's in the code I changed to 'time_t' and added a typedef
long time_t to the OS9 ifdef switch, mainly cause that's what the OSK time
functions return and are defined as in the header 'time.h'.  (Plus it made it
easier for me! It works fine now.  One more thing, If you really meant
/R0/SYS/uptime to be the filename, I assume you're iniz'ing the Ramdisk and
making the SYS directory on /R0 before running the util, right?

New Code in the NEXT MESSAGE

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.