[PATCH] Call memcpy in generic mempcpy

Paul Eggert eggert@cs.ucla.edu
Wed Feb 6 22:43:00 GMT 2013


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;



More information about the Libc-alpha mailing list