4 * Define string ops: strchr strrchr memcmp memmove memset
30 # define strrchr rindex
33 char *strchr(), *strrchr();
36 # define NTP_NEED_BOPS
38 #endif /* STDC_HEADERS */
43 # include <strings.h> /* bcmp, bcopy, bzero */
46 void ntp_memset (char *, int, int);
48 #define memcmp(a, b, c) bcmp(a, b, (int)(c))
49 #define memmove(t, f, c) bcopy(f, t, (int)(c))
50 #define memcpy(t, f, c) bcopy(f, t, (int)(c))
51 #define memset(a, x, c) if (0 == (x)) \
54 ntp_memset((char *)(a), x, c)
55 #endif /* NTP_NEED_BOPS */
57 #endif /* _ntp_string_h */