date and time created 91/03/07 20:27:58 by bostic
[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 *
10 * @(#)mystring.h 5.1 (Berkeley) %G%
11 */
12
13#ifndef SYSV
14#define strchr mystrchr
15#endif
16
17#ifdef __STDC__
18void scopyn(const char *, char *, int);
19char *strchr(const char *, int);
20void mybcopy(const pointer, pointer, int);
21int prefix(const char *, const char *);
22int number(const char *);
23int is_number(const char *);
24int strcmp(const char *, const char *); /* from C library */
25char *strcpy(char *, const char *); /* from C library */
26int strlen(const char *); /* from C library */
27char *strcat(char *, const char *); /* from C library */
28#else
29void scopyn();
30char *strchr();
31void mybcopy();
32int prefix();
33int number();
34int is_number();
35int strcmp();
36char *strcpy();
37int strlen();
38char *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)