4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / bin / sh / mystring.h
CommitLineData
0bd07c2c 1/*-
d1b73048
KB
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
0bd07c2c
KB
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * %sccs.include.redist.c%
9 *
d1b73048 10 * @(#)mystring.h 8.1 (Berkeley) %G%
0bd07c2c
KB
11 */
12
3e6f9ff1 13#include <string.h>
0bd07c2c
KB
14
15#ifdef __STDC__
16void scopyn(const char *, char *, int);
0bd07c2c
KB
17int prefix(const char *, const char *);
18int number(const char *);
19int is_number(const char *);
0bd07c2c
KB
20#else
21void scopyn();
0bd07c2c
KB
22int prefix();
23int number();
24int is_number();
0bd07c2c
KB
25#endif
26
27#define equal(s1, s2) (strcmp(s1, s2) == 0)
28#define scopy(s1, s2) ((void)strcpy(s2, s1))