45fde705b6
Fix the following error detected by checkpatch.pl: ERROR: space required before the open parenthesis '(' TEST=Build and run on Galileo Gen2 Change-Id: I8953fecbe75136ff989c9e3cf6c5e155dcee3c3b Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18698 Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
17 lines
298 B
C
17 lines
298 B
C
#include <string.h>
|
|
void *memmove(void *vdest, const void *vsrc, size_t count)
|
|
{
|
|
const char *src = vsrc;
|
|
char *dest = vdest;
|
|
|
|
if (dest <= src) {
|
|
while (count--)
|
|
*dest++ = *src++;
|
|
} else {
|
|
src += count - 1;
|
|
dest += count - 1;
|
|
while (count--)
|
|
*dest-- = *src--;
|
|
}
|
|
return vdest;
|
|
}
|