CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

structure pointers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eaton



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

structure pointers
PostPosted: Fri Sep 01, 2006 6:44 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Sep 01, 2006 6:55 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group