Dag-Erling Smorgrav wrote: > "Jacques A. Vidrine" <[EMAIL PROTECTED]> writes: > > On Tue, Feb 18, 2003 at 12:01:29PM +0100, Dag-Erling Smorgrav wrote: > > > The code that fails to compile is blatantly wrong: > > > > > > memset(schedule, 0, sizeof(schedule)); > > I wouldn't say `blantantly'. The expressions `schedule' and > > `&schedule' are equivalent when `schedule' is an array type. > > ...but Key_schedule is an opaque type, so it is not correct to assume > it's an array.
Aren't all "opaque types" pointers, by definition? Gotta wonder how one does a "sizeof()" on an "opaque type"... Seems to me that memset()'ing this thing to zero is a bogus thing to do in the first place, and that there should be an initialization routine, instead, that will do the job for you -- if not allocate you one of the things at the same time. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message