2 * Copyright 2005-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
7 Make life easier for those porting old Berkeley style
13 #ifndef USG /* when this is defined, these aren't needed */
16 #define bcopy(s, d, l) memmove(d, s, l)
19 #define bzero(s, l) memset(s, 0, l)
22 #define bcmp(a, b, len) memcmp(a, b, len)
26 #define index(str, chr) strchr(str, chr)
29 #define rindex(str, chr) strrchr(str, chr)
34 #endif /* _BSD_MEM_H_ */