fa.openbsd.tech
[Top] [All Lists]

Re: memdup(3)

Subject: Re: memdup(3)
From: Stuart Henderson <stu@xxxxxxxxxxxxxxx>
Date: Mon, 14 Jul 2008 15:25:32 UTC
Newsgroups: fa.openbsd.tech

On 2008/07/14 18:38, Alexey Dobriyan wrote:
> malloc+memcpy sequence exists extracted in quite a few projects.
> Sometimes, under different name, sometimes with different prototype,

And of course, sometimes with the same name and a different prototype, e.g.

int 
memdup(u_char **to, const u_char *from, size_t size)


<Prev in Thread] Current Thread [Next in Thread>