does the -> notation work in CCS. I can't seem to make it work.
(*struct_pointer).field will work but
struct_pointer->field doesn't work right.
any help would be greatly appreciated
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Sep 01, 2006 6:55 pm
Look at the PCF8583 driver that I've posted in the Code Library.
It uses structure pointers in the two main functions that read and set
the date and time.
http://www.ccsinfo.com/forum/viewtopic.php?t=27988
If that doesn't help, then post the following:
1. The PIC that you're using.
2. Your compiler version.
3. A very small, but complete test program that demonstrates the problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum