mystring.h revision 17987
1178173Simp/*- 2178173Simp * Copyright (c) 1991, 1993 3178173Simp * The Regents of the University of California. All rights reserved. 4178173Simp * 5178173Simp * This code is derived from software contributed to Berkeley by 6178173Simp * Kenneth Almquist. 7178173Simp * 8178173Simp * Redistribution and use in source and binary forms, with or without 9178173Simp * modification, are permitted provided that the following conditions 10178173Simp * are met: 11178173Simp * 1. Redistributions of source code must retain the above copyright 12178173Simp * notice, this list of conditions and the following disclaimer. 13178173Simp * 2. Redistributions in binary form must reproduce the above copyright 14178173Simp * notice, this list of conditions and the following disclaimer in the 15178173Simp * documentation and/or other materials provided with the distribution. 16178173Simp * 3. All advertising materials mentioning features or use of this software 17178173Simp * must display the following acknowledgement: 18178173Simp * This product includes software developed by the University of 19178173Simp * California, Berkeley and its contributors. 20178173Simp * 4. Neither the name of the University nor the names of its contributors 21178173Simp * may be used to endorse or promote products derived from this software 22178173Simp * without specific prior written permission. 23178173Simp * 24178173Simp * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25178173Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26178173Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27178173Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28178173Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29178173Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30178173Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31178173Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32178173Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33178173Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34178173Simp * SUCH DAMAGE. 35178173Simp * 36178173Simp * @(#)mystring.h 8.2 (Berkeley) 5/4/95 37178173Simp * $Id: mystring.h,v 1.2 1994/09/24 02:58:00 davidg Exp $ 38178173Simp */ 39178173Simp 40178173Simp#include <string.h> 41178173Simp 42178173Simpvoid scopyn __P((const char *, char *, int)); 43178173Simpint prefix __P((const char *, const char *)); 44178173Simpint number __P((const char *)); 45178173Simpint is_number __P((const char *)); 46178173Simp 47178173Simp#define equal(s1, s2) (strcmp(s1, s2) == 0) 48178173Simp#define scopy(s1, s2) ((void)strcpy(s2, s1)) 49178173Simp