#: 7202 S3/Languages
05-Oct-90 11:42:38
Sb: #7182-#c_problem
Fm: Pete Lyall 76703,4230
To: ANDY THIBODEAU 76636,2300 (X)
Andy -
Not that it necessarily is, but NEVER assume a manual to be Gospel. Too many
folks have wasted countless debugging hours on assumptions like that.
As far as "English please" goes.... I gave you the way to solve your
programming
problem in normal C terms. If you find those vague, then you may want to pick
up a text on C. I highly reccommend the "C Primer Plus" by the Waite group.
As far as your problem goes, I'll make one more attempt.
Gettime() requires a pointer to a structure. Just because you have a pointer,
doesn't get you anything. You need something for it to POINT TO. In this case,
you must either manually declare a structure to hold the time data, or if it's
already available in a '.h' file (i.e. time.h), then make sure to include that
file.
If you want top reference the time data using the pointer, you must use the
approach:
pointer->data_element;
If you want to access the time data using the name of the structure instead,
you need to use:
structname.data_element;
Pete
P.S. Please learn to accept help in a more gracious fashion, else you'll find
people less than willing to take the time to help you with your problem.
There is 1 Reply.
|