Posted by Kwisatz Haderach on 2000-04-19
> If I can use it for classes, then what do I put in
> the "size_t count" parameter(the
> last parameter in the list)?
>
The last parameter to a memcpy is the number of bytes
you want to copy.
class myclass
{
...
};
void somefunction(...)
{
myclass c;
...
memcpy(some_ptr, &c, sizeof(myclass));
}
Cheers,
Sharvil Nanavati
__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com
Previous post | Next post | Timeline | Home