4.4BSD snapshot (revision 8.1)
[unix-history] / usr / src / bin / sh / mystring.h
CommitLineData
0bd07c2c
KB
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 *
3e6f9ff1 10 * @(#)mystring.h 5.2 (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))