TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: MARC WEINMANN
from: KEIICHI NAKASATO
date: 1995-01-25 12:53:00
subject: Programming in OS/2

On 01-24-95 MARC WEINMANN wrote to ALL... 
 
 MW> Hello, I'm trying to do some simple simple programs in C/C++.  All I'm 
 MW> trying to make the program do is read the system's date from the bios, 
 MW> and print it to the screen.  Thats it.  I tried using a dos function 
 MW> call the time from the bios..and my little program causes a dos raise 
 MW> exception.  Is there a special function I must use..or is there 
 MW> something I should watch for when trying to write a program to run in 
 MW> dos penalty box? 
 
Use ANSI time() etc.  Unix (ANSI) time is number of second from 1970. 
ctime() convert it to a string. 
 
Aloha,  Keiichi  :-)  
 
--- 
 * OFFLINE 1.56 * {:-)  one hair standing with smile 

--- GOMail v2.0t Beta [94-0471]
* Origin: chitchat line II, Kailua, HI (808) 254-8102 (1:345/56)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809
@PATH: 345/56 12 3615/50 105/103 42 724/13 600/500 2 82 229/2 12/2442 711/409
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.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™.