| ??? 04/19/03 05:44 Read: times |
#43746 - RE: Pointers to Structure Elements Responding to: ???'s previous message |
Hi Marshall,
Declare a character pointer, then take the address of your structure element and cast it to a char: struct Action Action; char *day_ptr; day_ptr = (char *)&Action.Day; Personally, I'd take the address of the structure itself (which is the same as the address of the first element within the structure) and start filling for sizeof(struct Action); Dennis |
| Topic | Author | Date |
| 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 |



