1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. 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 8.1 (Berkeley) 05/31/93 11 */ 12 13 #include <string.h> 14 15 #ifdef __STDC__ 16 void scopyn(const char *, char *, int); 17 int prefix(const char *, const char *); 18 int number(const char *); 19 int is_number(const char *); 20 #else 21 void scopyn(); 22 int prefix(); 23 int number(); 24 int is_number(); 25 #endif 26 27 #define equal(s1, s2) (strcmp(s1, s2) == 0) 28 #define scopy(s1, s2) ((void)strcpy(s2, s1)) 29