> I've never done this myself, but I've always been under the impression that
> sizeof(*buf) would work for dynamically allocated buffers.

sizeof() is an operator whose value is determined at compile time.
sizeof(*buf) gives the size of what buf points to.  This would be `1' if
buf were a char*, or `4' if buf were an int* [on the i386].

-- 
-- David    ([EMAIL PROTECTED])


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to