Home | History | Annotate | Line # | Download | only in include
string.h revision 1.5.2.2
      1  1.5.2.2  jtc /*-
      2  1.5.2.2  jtc  * Copyright (c) 1990 The Regents of the University of California.
      3  1.5.2.2  jtc  * All rights reserved.
      4  1.5.2.2  jtc  *
      5  1.5.2.2  jtc  * Redistribution and use in source and binary forms, with or without
      6  1.5.2.2  jtc  * modification, are permitted provided that the following conditions
      7  1.5.2.2  jtc  * are met:
      8  1.5.2.2  jtc  * 1. Redistributions of source code must retain the above copyright
      9  1.5.2.2  jtc  *    notice, this list of conditions and the following disclaimer.
     10  1.5.2.2  jtc  * 2. Redistributions in binary form must reproduce the above copyright
     11  1.5.2.2  jtc  *    notice, this list of conditions and the following disclaimer in the
     12  1.5.2.2  jtc  *    documentation and/or other materials provided with the distribution.
     13  1.5.2.2  jtc  * 3. All advertising materials mentioning features or use of this software
     14  1.5.2.2  jtc  *    must display the following acknowledgement:
     15  1.5.2.2  jtc  *	This product includes software developed by the University of
     16  1.5.2.2  jtc  *	California, Berkeley and its contributors.
     17  1.5.2.2  jtc  * 4. Neither the name of the University nor the names of its contributors
     18  1.5.2.2  jtc  *    may be used to endorse or promote products derived from this software
     19  1.5.2.2  jtc  *    without specific prior written permission.
     20  1.5.2.2  jtc  *
     21  1.5.2.2  jtc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     22  1.5.2.2  jtc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23  1.5.2.2  jtc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24  1.5.2.2  jtc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     25  1.5.2.2  jtc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     26  1.5.2.2  jtc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     27  1.5.2.2  jtc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     28  1.5.2.2  jtc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     29  1.5.2.2  jtc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     30  1.5.2.2  jtc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     31  1.5.2.2  jtc  * SUCH DAMAGE.
     32  1.5.2.2  jtc  *
     33  1.5.2.2  jtc  *	from: @(#)string.h	5.10 (Berkeley) 3/9/91
     34  1.5.2.2  jtc  *	$Id: string.h,v 1.5.2.2 1994/08/02 05:03:47 jtc Exp $
     35  1.5.2.2  jtc  */
     36  1.5.2.2  jtc 
     37  1.5.2.2  jtc #ifndef _STRING_H_
     38  1.5.2.2  jtc #define	_STRING_H_
     39  1.5.2.2  jtc #include <machine/ansi.h>
     40  1.5.2.2  jtc 
     41  1.5.2.2  jtc #ifdef	_BSD_SIZE_T_
     42  1.5.2.2  jtc typedef	_BSD_SIZE_T_	size_t;
     43  1.5.2.2  jtc #undef	_BSD_SIZE_T_
     44  1.5.2.2  jtc #endif
     45  1.5.2.2  jtc 
     46  1.5.2.2  jtc #ifndef	NULL
     47  1.5.2.2  jtc #define	NULL	0
     48  1.5.2.2  jtc #endif
     49  1.5.2.2  jtc 
     50  1.5.2.2  jtc #include <sys/cdefs.h>
     51  1.5.2.2  jtc 
     52  1.5.2.2  jtc __BEGIN_DECLS
     53  1.5.2.2  jtc void	*memchr __P((const void *, int, size_t));
     54  1.5.2.2  jtc int	 memcmp __P((const void *, const void *, size_t));
     55  1.5.2.2  jtc void	*memcpy __P((void *, const void *, size_t));
     56  1.5.2.2  jtc void	*memmove __P((void *, const void *, size_t));
     57  1.5.2.2  jtc void	*memset __P((void *, int, size_t));
     58  1.5.2.2  jtc char	*strcat __P((char *, const char *));
     59  1.5.2.2  jtc char	*strchr __P((const char *, int));
     60  1.5.2.2  jtc int	 strcmp __P((const char *, const char *));
     61  1.5.2.2  jtc int	 strcoll __P((const char *, const char *));
     62  1.5.2.2  jtc char	*strcpy __P((char *, const char *));
     63  1.5.2.2  jtc size_t	 strcspn __P((const char *, const char *));
     64  1.5.2.2  jtc char	*strerror __P((int));
     65  1.5.2.2  jtc size_t	 strlen __P((const char *));
     66  1.5.2.2  jtc char	*strncat __P((char *, const char *, size_t));
     67  1.5.2.2  jtc int	 strncmp __P((const char *, const char *, size_t));
     68  1.5.2.2  jtc char	*strncpy __P((char *, const char *, size_t));
     69  1.5.2.2  jtc char	*strpbrk __P((const char *, const char *));
     70  1.5.2.2  jtc char	*strrchr __P((const char *, int));
     71  1.5.2.2  jtc size_t	 strspn __P((const char *, const char *));
     72  1.5.2.2  jtc char	*strstr __P((const char *, const char *));
     73  1.5.2.2  jtc char	*strtok __P((char *, const char *));
     74  1.5.2.2  jtc size_t	 strxfrm __P((char *, const char *, size_t));
     75  1.5.2.2  jtc 
     76  1.5.2.2  jtc /* Nonstandard routines */
     77  1.5.2.2  jtc #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
     78  1.5.2.2  jtc int	 bcmp __P((const void *, const void *, size_t));
     79  1.5.2.2  jtc void	 bcopy __P((const void *, void *, size_t));
     80  1.5.2.2  jtc void	 bzero __P((void *, size_t));
     81  1.5.2.2  jtc int	 ffs __P((int));
     82  1.5.2.2  jtc char	*index __P((const char *, int));
     83  1.5.2.2  jtc void	*memccpy __P((void *, const void *, int, size_t));
     84  1.5.2.2  jtc char	*rindex __P((const char *, int));
     85  1.5.2.2  jtc int	 strcasecmp __P((const char *, const char *));
     86  1.5.2.2  jtc char	*strdup __P((const char *));
     87  1.5.2.2  jtc void	 strmode __P((int, char *));
     88  1.5.2.2  jtc int	 strncasecmp __P((const char *, const char *, size_t));
     89  1.5.2.2  jtc char	*strsep __P((char **, const char *));
     90  1.5.2.2  jtc char	*strsignal __P((int));
     91  1.5.2.2  jtc void	 swab __P((const void *, void *, size_t));
     92  1.5.2.2  jtc #endif
     93  1.5.2.2  jtc __END_DECLS
     94  1.5.2.2  jtc 
     95  1.5.2.2  jtc #endif /* _STRING_H_ */
     96