This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Call memcpy in generic mempcpy
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 06 Feb 2013 14:43:14 -0800
- Subject: Re: [PATCH] Call memcpy in generic mempcpy
- References: <20130206205334.GB3032@domone.kolej.mff.cuni.cz>
On 02/06/13 12:53, OndÅej BÃlka wrote:
> unsigned long int dstp = (long int) dstpp;
...
> + memcpy (dstpp, srcpp, len);
> + return (void *) (dstp + len);
There's no need to use an integer type, or
to do any casts. Something like this, perhaps?
char *dstp = dstpp;
memcpy (destpp, srcpp, len);
return dstp + len;