2
* Private header file containing symbolic constants, type declarations,
3
* and macro definitions for OS memory routines, to provide a level of
4
* abstraction between them and routines that use them.
6
* This file should only be included by internal C files.
15
/* ensure that NULL is defined */
25
#define bytealloc(nbytes) malloc((unsigned long)(nbytes))
27
/* deallocate bytes */
28
#define bytefree(pointer) (void)free((char *)(pointer))
35
# define strrchr rindex
37
char *strchr (), *strrchr ();
39
# define memcpy(d, s, n) bcopy ((s), (d), (n))
40
# define memmove(d, s, n) bcopy ((s), (d), (n))
44
#define bytecopy(from,to,nbytes) \
45
((void)memcpy((char *)(to), (char *)(from), (int)(nbytes)))
47
#endif /* _memcpy_h */