haiku/headers/posix/bsd_mem.h
Scott McCreary 0fae873352 Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:46:47 +00:00

35 lines
646 B
C

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