| ??? 07/21/04 17:42 Read: times |
#74636 - doub about strutc pointers |
Hi.
I am some confused about to use pointers to structs. Somebody could let me know if the below code is right ? I want to access members of the parameter passing structure. struct parISgeneric { byte *str; struct GIS *INPS; }; struct GIS { char fTake; char *szInterface; }; byte ISgeneric(struct parISgeneric *par) { char auxBuf[30]; auxBuf= par->str; // to set fTake with 20 par->INPS->fTake==20; // to set auxBuf with szInterface address sprintf(auxBuf,"%s",par->INPS->szInterface); } |
| Topic | Author | Date |
| doub about strutc pointers | 01/01/70 00:00 | |
| RE: doub about strutc pointers | 01/01/70 00:00 | |
| RE: doub about strutc pointers | 01/01/70 00:00 | |
| What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| RE: undefined behaviour land | 01/01/70 00:00 | |
| RE: What do you doubt? | 01/01/70 00:00 | |
| Still unknown doubt | 01/01/70 00:00 | |
| RE: doub about strutc pointers | 01/01/70 00:00 | |
| Nothing 8051-specific here | 01/01/70 00:00 | |
| RE: Nothing 8051-specific here | 01/01/70 00:00 | |
| RE: doub about strutc pointers | 01/01/70 00:00 | |
RE: doub about strutc pointers | 01/01/70 00:00 |



