I'm having trouble getting the methods in psprtc.h to cooperate. Could anybody give me an example of how to retreive the values of the system clock, and cast them from U16s to INTs?
You messing up with the pointers. You haven't allocated any memory for the time structure, you only have an uninitialized pointer. Modifying your code as below should do the trick.
Thanks a bunch! I'll try recompiling it when I get home after work.
For the records, the arrow format was suggested to me by a friend of mine who's a software engineer with 5 years experience. Just goes to show you that you can never know everything. :P
funkmeister wrote:Thanks a bunch! I'll try recompiling it when I get home after work.
For the records, the arrow format was suggested to me by a friend of mine who's a software engineer with 5 years experience. Just goes to show you that you can never know everything. :P
The arrows was correct in your original post, where time was a pointer. I my changed suggestion, you need to use the . as cheriff corrected me. I forgot to change that.