Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!usc!wuarchive!udel!mmdf From: jlabelle@lynx.northeastern.edu Newsgroups: comp.sys.amiga Subject: Time! Message-ID: <29760@nigel.ee.udel.edu> Date: 7 Sep 90 14:14:51 GMT Sender: mmdf@ee.udel.edu Lines: 58 Ok. Is it just me.. Or do I think that the SAS/C 5.1 include discription is very vague. I don't think I could define myself as being slow. But, I was figuring out how to display the time and it was such a bear. Their example is not good at all. well, I have a problem which hopefully someone can help me by writing via E-Mail. #include #include #include #define TIMEMODE 4 #define DATEMODE 7 main() { unsigned char clock[8]; char time[4]; char date[3]; int counter; getclk(clock); for (counter=0;counter<4;counter++) time[n]=clock[n+4]; for (counter=0;counter<3;counter++) date[n]=clock[n+1]; stptime(clock,TIMEMODE,time); printf("%s\n",clock); stpdate(clock,DATEMODE,date); printf("%s\n",clock); } Ok. here is my problem: 1. When I define DATEMODE 5. I get a software error. You know the red flash! I figured it has to be the 19 byte date. So, how do I allocate this from preventing this from erroring on me. 2. What is proto/intuition.h used for 3. I want to use an extended graphic version of this instead of the clock given in 2.0. Because I have to move it to the top and also select digital. It get's painful. Well, the problem I have encountered is when I put an icon with it and load it in the wbstartup. It creates another window. How do I get rid of this window. 4. When I run a program from the CLI. How do I deattach the program from the CLI. So, the CLI window can go away. 5. Can someone help me on understanding HEX code when making gadgets structures in C. Thanks in advance! ------ Spontaneous Gratification! That's all I ask for! jlabelle@lynx.northeastern.edu