| ??? 04/19/03 06:48 Read: times |
#43749 - RE: Pointers to Structure Elements Responding to: ???'s previous message |
hi
i think u want to store sizeof(action) bytes from the stream to the structure. donno C used in micros , but generally u can do so by a cast operator. unsigned char *p; p =(unsigned char *) &action; for(i=0;i<sizeof(action);i++) { *(p+i) = read(stream); } now u can use the action like action.member_of_action abhishek |
| 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 |



