Commit | Line | Data |
---|---|---|
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__ | |
16 | void scopyn(const char *, char *, int); | |
0bd07c2c KB |
17 | int prefix(const char *, const char *); |
18 | int number(const char *); | |
19 | int is_number(const char *); | |
0bd07c2c KB |
20 | #else |
21 | void scopyn(); | |
0bd07c2c KB |
22 | int prefix(); |
23 | int number(); | |
24 | int 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)) |