xref: /titanic_50/usr/src/lib/libbc/inc/include/string.h (revision c77a61a72b5ecdc507d6cf104142edd371a16c84)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*      Copyright (c) 1984 AT&T */
28 /*        All Rights Reserved   */
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifndef	__string_h
33 #define	__string_h
34 
35 #include <sys/stdtypes.h>	/* for size_t */
36 
37 #ifndef NULL
38 #define	NULL		0
39 #endif
40 
41 extern char *	strcat(/* char *s1, const char *s2 */);
42 extern char *	strchr(/* const char *s, int c */);
43 extern int	strcmp(/* const char *s1, const char *s2 */);
44 extern char *	strcpy(/* char *s1, const char *s2 */);
45 extern size_t	strcspn(/* const char *s1, const char *s2 */);
46 #ifndef	_POSIX_SOURCE
47 extern char *	strdup(/* char *s1 */);
48 #endif
49 extern size_t	strlen(/* const char *s */);
50 extern char *	strncat(/* char *s1, const char *s2, size_t n */);
51 extern int	strncmp(/* const char *s1, const char *s2, size_t n */);
52 extern char *	strncpy(/* char *s1, const char *s2, size_t n */);
53 extern char *	strpbrk(/* const char *s1, const char *s2 */);
54 extern char *	strrchr(/* const char *s, int c */);
55 extern size_t	strspn(/* const char *s1, const char *s2 */);
56 extern char *	strstr(/* const char *s1, const char *s2 */);
57 extern char *	strtok(/* char *s1, const char *s2 */);
58 
59 #endif	/* !__string_h */
60