Re: need help on #271678 (sizefo struct?)
vzweije@sense.xs4all.nl (Vincent Zweije) writes:
> On Mon, May 16, 2005 at 12:06:37PM +0200, Bernd Eckenfels wrote:
>
> || In article <[🔎] 20050516081733.GA12100@love.sense.znet> you wrote:
>
> || {
> || struct x25_route_struct rt;
> || struct sockaddr_x25 sx25;
> || ...
> || memset((char *) &rt, 0, sizeof(struct x25_route_struct));
>
> memset((char *) &rt, 0, sizeof rt);
The cast is unnecessary:
memset(&rt, 0, sizeof rt);
--
"A computer is a state machine.
Threads are for people who cant [sic] program state machines."
--Alan Cox
Reply to: