1 /* strings.h - define standard string functions */
2 /* @(#)$Id: strings.h,v 1.20 1995/12/06 23:48:12 jromine Exp $ */
4 #ifndef _STRINGS /* once-only... */
15 #define bcmp(b1,b2,length) memcmp(b1, b2, length)
16 #define bcopy(b1,b2,length) (void) memcpy (b2, b1, length)
17 #define bcpy(b1,b2,length) memcmp (b1, b2, length)
18 #define bzero(b,length) (void) memset (b, 0, length)
24 #define rindex strrchr
27 #if defined(BSD42) || defined(SVR4)
28 #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44)
34 #else /* not BSD42 || SVR4 */
39 #ifndef ncr /* NCR compiler complains about re-declaration */
40 char *sprintf (); /* I guess this is the new standard */
43 SPRINTFTYPE sprintf ();
54 #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44)
56 char *calloc (), *malloc (), *realloc ();
61 #define bcmp(b1,b2,length) memcmp(b1, b2, length)
62 #define bcopy(b1,b2,length) (void) memcpy (b2, b1, length)
63 #define bcpy(b1,b2,length) memcmp (b1, b2, length)
64 #define bzero(b,length) (void) memset (b, 0, length)
67 #endif /* not _STRINGS */
69 #if !defined(bcopy) && (defined(__HIGHC__) || __GNUC__ == 2)
70 #define bcopy(s,d,l) memcpy(d,s,l)