2 * Copyright 2005, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT license.
7 #include <SupportDefs.h>
13 memccpy(void *_dest
, const void *_source
, int stopByte
, size_t length
)
16 const uint8
*source
= (const uint8
*)_source
;
17 uint8
*dest
= (uint8
*)_dest
;
20 if ((*dest
++ = *source
++) == (uint8
)stopByte
)
22 } while (--length
!= 0);