2019-08-25 04:46:40 +00:00
|
|
|
#ifndef _OS_LIBC_H_
|
2019-11-03 19:36:27 +00:00
|
|
|
#define _OS_LIBC_H_
|
2019-08-25 04:46:40 +00:00
|
|
|
|
2019-11-03 19:36:27 +00:00
|
|
|
#include "ultratypes.h"
|
2019-08-25 04:46:40 +00:00
|
|
|
|
2019-11-03 19:36:27 +00:00
|
|
|
// Old deprecated functions from strings.h, replaced by memcpy/memset.
|
2020-05-16 20:14:10 +00:00
|
|
|
#ifdef NO_BZERO
|
|
|
|
#include <string.h>
|
|
|
|
#define bzero(buf, size) memset(buf, 0, size)
|
|
|
|
#define bcopy(src, dst, size) memcpy(dst, src, size)
|
|
|
|
#else
|
2019-11-03 19:36:27 +00:00
|
|
|
extern void bcopy(const void *, void *, size_t);
|
|
|
|
extern void bzero(void *, size_t);
|
2020-05-16 20:14:10 +00:00
|
|
|
#endif
|
2019-08-25 04:46:40 +00:00
|
|
|
|
|
|
|
#endif /* !_OS_LIBC_H_ */
|