On Thu, 6 Mar 2008, Harold Hallikainen wrote: > My understanding (which may be wrong) is that array and structure > arguments to functions are passed as pointers to that array or structure > (the address of the start of the array or structure) instead of passing > the entire array or structure (which would be rather large). The name of an array will decay to a pointer to the first element in that array. But that is not true for structures; if you pass a structure to a function, the entire structure will be passed, and the called function will receive a copy of the structure. > So... it looks like I'm not understanding something! How do I pass a > pointer to a particular element in an array of structures do I can modify > the structure components? Apply the & operator to the struct being passed. This will pass a pointer to the struct to the function. In the function, you'll use the -> operator instead of the . operator. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist