1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)mystring.h 5.1 (Berkeley) 03/07/91 11 */ 12 13 #ifndef SYSV 14 #define strchr mystrchr 15 #endif 16 17 #ifdef __STDC__ 18 void scopyn(const char *, char *, int); 19 char *strchr(const char *, int); 20 void mybcopy(const pointer, pointer, int); 21 int prefix(const char *, const char *); 22 int number(const char *); 23 int is_number(const char *); 24 int strcmp(const char *, const char *); /* from C library */ 25 char *strcpy(char *, const char *); /* from C library */ 26 int strlen(const char *); /* from C library */ 27 char *strcat(char *, const char *); /* from C library */ 28 #else 29 void scopyn(); 30 char *strchr(); 31 void mybcopy(); 32 int prefix(); 33 int number(); 34 int is_number(); 35 int strcmp(); 36 char *strcpy(); 37 int strlen(); 38 char *strcat(); 39 #endif 40 41 #define equal(s1, s2) (strcmp(s1, s2) == 0) 42 #define scopy(s1, s2) ((void)strcpy(s2, s1)) 43 #define bcopy(src, dst, n) mybcopy((pointer)(src), (pointer)(dst), n) 44