xref: /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/dt_string.h (revision c0855460da148f19acba9384f3b92685f0354376)
1a864dc36Sdarran /*
2a864dc36Sdarran  * CDDL HEADER START
3a864dc36Sdarran  *
4a864dc36Sdarran  * The contents of this file are subject to the terms of the
5*c0855460Schristos  * Common Development and Distribution License (the "License").
6*c0855460Schristos  * You may not use this file except in compliance with the License.
7a864dc36Sdarran  *
8a864dc36Sdarran  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a864dc36Sdarran  * or http://www.opensolaris.org/os/licensing.
10a864dc36Sdarran  * See the License for the specific language governing permissions
11a864dc36Sdarran  * and limitations under the License.
12a864dc36Sdarran  *
13a864dc36Sdarran  * When distributing Covered Code, include this CDDL HEADER in each
14a864dc36Sdarran  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a864dc36Sdarran  * If applicable, add the following below this CDDL HEADER, with the
16a864dc36Sdarran  * fields enclosed by brackets "[]" replaced with your own identifying
17a864dc36Sdarran  * information: Portions Copyright [yyyy] [name of copyright owner]
18a864dc36Sdarran  *
19a864dc36Sdarran  * CDDL HEADER END
20a864dc36Sdarran  */
21a864dc36Sdarran /*
22*c0855460Schristos  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23a864dc36Sdarran  */
24a864dc36Sdarran 
25a864dc36Sdarran #ifndef	_DT_STRING_H
26a864dc36Sdarran #define	_DT_STRING_H
27a864dc36Sdarran 
28a864dc36Sdarran 
29a864dc36Sdarran #include <sys/types.h>
30a864dc36Sdarran #include <strings.h>
31a864dc36Sdarran 
32a864dc36Sdarran #ifdef	__cplusplus
33a864dc36Sdarran extern "C" {
34a864dc36Sdarran #endif
35a864dc36Sdarran 
36a864dc36Sdarran extern size_t stresc2chr(char *);
37a864dc36Sdarran extern char *strchr2esc(const char *, size_t);
38a864dc36Sdarran extern const char *strbasename(const char *);
39a864dc36Sdarran extern const char *strbadidnum(const char *);
40a864dc36Sdarran extern int strisglob(const char *);
41a864dc36Sdarran extern char *strhyphenate(char *);
42a864dc36Sdarran 
43a864dc36Sdarran #ifdef	__cplusplus
44a864dc36Sdarran }
45a864dc36Sdarran #endif
46a864dc36Sdarran 
47a864dc36Sdarran #endif	/* _DT_STRING_H */
48