Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/03 07:19
Read: times


 
#43810 - RE: Pointers to Structure Elements
Responding to: ???'s previous message
Thanks for the tips; but what if the arrays are not all totally filled, ie, when the string arrives it is basically comma seperated, and I am parsing the commas out and want to fill the relevant element of the structure with the correct data. For instance:

I receive the serial string "1,2,3,,5"
and I want to load this data into elements 1,2,3,5, missing element 4.

If I use the pointer to the structure and just keep incrementing it I will load it incorrectly,(I suppose that I know that the 4th element is empty so could increment the pointer +1 without too much of a problem)

Yep I think I will do that, unless anybody has some other flashier means of achieving this.


Regards
Marshall Brown

List of 12 messages in thread
TopicAuthorDate
Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
      RE: Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
      RE: Pointers to Structure Elements            01/01/70 00:00      
         RE: Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
   RE: Pointers to Structure Elements            01/01/70 00:00      
   Universal casting to structs/union/void            01/01/70 00:00      
      RE: Universal casting to structs/union/void            01/01/70 00:00      

Back to Subject List