xref: /original-bsd/bin/sh/mystring.h (revision d364528e)
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.2 (Berkeley) 06/23/92
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