string.h (adecd3c68045d04dc367d30faf2eb5cac1f45d5a) | string.h (b811a51ae52cf3dd141a03c928fdcfbd6160c008) |
---|---|
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 (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 9 unchanged lines hidden (view full) --- 18 * 19 * CDDL HEADER END 20 */ 21/* Copyright (c) 1988 AT&T */ 22/* All Rights Reserved */ 23 24 25/* | 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 (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 9 unchanged lines hidden (view full) --- 18 * 19 * CDDL HEADER END 20 */ 21/* Copyright (c) 1988 AT&T */ 22/* All Rights Reserved */ 23 24 25/* |
26 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. | 26 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
27 * Use is subject to license terms. 28 */ 29 30#ifndef _STRING_H 31#define _STRING_H 32 | 27 * Use is subject to license terms. 28 */ 29 30#ifndef _STRING_H 31#define _STRING_H 32 |
33#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.7.1.12 */ 34 | |
35#include <iso/string_iso.h> 36 37/* 38 * Allow global visibility for symbols defined in 39 * C++ "std" namespace in <iso/string_iso.h>. 40 */ 41#if __cplusplus >= 199711L 42using std::size_t; --- 52 unchanged lines hidden (view full) --- 95extern int uucopystr(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, size_t); 96extern char *strsignal(int); 97extern size_t strnlen(const char *, size_t); 98extern int ffs(int); 99extern int strcasecmp(const char *, const char *); 100extern int strncasecmp(const char *, const char *, size_t); 101extern size_t strlcpy(char *, const char *, size_t); 102extern size_t strlcat(char *, const char *, size_t); | 33#include <iso/string_iso.h> 34 35/* 36 * Allow global visibility for symbols defined in 37 * C++ "std" namespace in <iso/string_iso.h>. 38 */ 39#if __cplusplus >= 199711L 40using std::size_t; --- 52 unchanged lines hidden (view full) --- 93extern int uucopystr(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, size_t); 94extern char *strsignal(int); 95extern size_t strnlen(const char *, size_t); 96extern int ffs(int); 97extern int strcasecmp(const char *, const char *); 98extern int strncasecmp(const char *, const char *, size_t); 99extern size_t strlcpy(char *, const char *, size_t); 100extern size_t strlcat(char *, const char *, size_t); |
101extern char *strsep(char **stringp, const char *delim); |
|
103#endif /* defined(__EXTENSIONS__)... */ 104 105#if defined(__EXTENSIONS__) || \ 106 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ 107 defined(_XPG4_2) 108extern char *strdup(const char *); 109#endif 110 --- 19 unchanged lines hidden (view full) --- 130extern int uucopystr(); 131extern char *strsignal(); 132extern size_t strnlen(); 133extern int ffs(); 134extern int strcasecmp(); 135extern int strncasecmp(); 136extern size_t strlcpy(); 137extern size_t strlcat(); | 102#endif /* defined(__EXTENSIONS__)... */ 103 104#if defined(__EXTENSIONS__) || \ 105 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ 106 defined(_XPG4_2) 107extern char *strdup(const char *); 108#endif 109 --- 19 unchanged lines hidden (view full) --- 129extern int uucopystr(); 130extern char *strsignal(); 131extern size_t strnlen(); 132extern int ffs(); 133extern int strcasecmp(); 134extern int strncasecmp(); 135extern size_t strlcpy(); 136extern size_t strlcat(); |
137extern char *strsep(); |
|
138#endif /* defined(__EXTENSIONS__) ... */ 139 140#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) 141extern char *strdup(); 142#endif 143 144#endif /* __STDC__ */ 145 146#ifdef __cplusplus 147} 148#endif 149 150#endif /* _STRING_H */ | 138#endif /* defined(__EXTENSIONS__) ... */ 139 140#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) 141extern char *strdup(); 142#endif 143 144#endif /* __STDC__ */ 145 146#ifdef __cplusplus 147} 148#endif 149 150#endif /* _STRING_H */ |