| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Basic C syntax |
Hi Neil! :-)
NH> typedef struct _msg_t {
NH> unsigned int num;
NH> unsigned int values[MAXVALS];
NH> } msg_t;
[...]
NH> return read(fd, (void *)&m->values, sz * m->num);
[...]
Isn't m->values already the address of the first array element? Also,
casting to void should be unneccessary.
Ciao
Pascal
--- Msged/LNX 6.1.1
* Origin: rot13: tr '[A-Za-z]' '[N-ZA-Mn-za-m]' (1:153/401.2)SEEN-BY: 633/267 270 @PATH: 153/401 307 140/1 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.