epoc32/include/stdapis/string.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/string.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/string.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,164 @@
     1.4 -string.h
     1.5 +/*-
     1.6 + * Copyright (c) 1990, 1993
     1.7 + *	The Regents of the University of California.  All rights reserved.
     1.8 + *
     1.9 + * Redistribution and use in source and binary forms, with or without
    1.10 + * modification, are permitted provided that the following conditions
    1.11 + * are met:
    1.12 + * 1. Redistributions of source code must retain the above copyright
    1.13 + *    notice, this list of conditions and the following disclaimer.
    1.14 + * 2. Redistributions in binary form must reproduce the above copyright
    1.15 + *    notice, this list of conditions and the following disclaimer in the
    1.16 + *    documentation and/or other materials provided with the distribution.
    1.17 + * 4. Neither the name of the University nor the names of its contributors
    1.18 + *    may be used to endorse or promote products derived from this software
    1.19 + *    without specific prior written permission.
    1.20 + *
    1.21 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    1.22 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.23 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.24 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.25 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.26 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.27 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.28 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.29 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.30 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.31 + * SUCH DAMAGE.
    1.32 + *
    1.33 + *	@(#)string.h	8.1 (Berkeley) 6/2/93
    1.34 + * $FreeBSD: src/include/string.h,v 1.21.2.1 2005/08/29 18:46:39 andre Exp $
    1.35 + *  © Portions copyright (c) 2005-2006  Nokia Corporation.  All rights reserved.
    1.36 + */
    1.37 +
    1.38 +#ifndef _STRING_H_
    1.39 +#define	_STRING_H_
    1.40 +
    1.41 +#include <sys/cdefs.h>
    1.42 +#include <sys/_null.h>
    1.43 +#include <sys/_types.h>
    1.44 +
    1.45 +#ifdef __SYMBIAN32__
    1.46 +#include <_ansi.h>
    1.47 +#endif
    1.48 +/*
    1.49 + * Prototype functions which were historically defined in <string.h>, but
    1.50 + * are required by POSIX to be prototyped in <strings.h>.
    1.51 + */
    1.52 +#if __BSD_VISIBLE
    1.53 +#include <strings.h>
    1.54 +#endif
    1.55 +
    1.56 +#ifndef _SIZE_T_DECLARED
    1.57 +typedef	__size_t	size_t;
    1.58 +#define	_SIZE_T_DECLARED
    1.59 +#endif
    1.60 +
    1.61 +__BEGIN_DECLS
    1.62 +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    1.63 +IMPORT_C 
    1.64 +void	*memccpy(void * __restrict, const void * __restrict, int, size_t);
    1.65 +#endif
    1.66 +IMPORT_C 
    1.67 +void	*memchr(const void *, int, size_t) __pure;
    1.68 +IMPORT_C 
    1.69 +int	 memcmp(const void *, const void *, size_t) __pure;
    1.70 +IMPORT_C 
    1.71 +void	*memcpy(void * __restrict, const void * __restrict, size_t);
    1.72 +IMPORT_C 
    1.73 +void	*memmove(void *, const void *, size_t);
    1.74 +IMPORT_C 
    1.75 +void	*memset(void *, int, size_t);
    1.76 +#if __BSD_VISIBLE
    1.77 +IMPORT_C 
    1.78 +char	*stpcpy(char *, const char *);
    1.79 +IMPORT_C 
    1.80 +char	*strcasestr(const char *, const char *) __pure;
    1.81 +#endif
    1.82 +IMPORT_C 
    1.83 +char	*strcat(char * __restrict, const char * __restrict);
    1.84 +IMPORT_C 
    1.85 +char	*strchr(const char *, int) __pure;
    1.86 +IMPORT_C 
    1.87 +int	 strcmp(const char *, const char *) __pure;
    1.88 +IMPORT_C 
    1.89 +int	 strcoll(const char *, const char *);
    1.90 +IMPORT_C 
    1.91 +char	*strcpy(char * __restrict, const char * __restrict);
    1.92 +IMPORT_C 
    1.93 +size_t	 strcspn(const char *, const char *) __pure;
    1.94 +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    1.95 +IMPORT_C 
    1.96 +char	*strdup(const char *);
    1.97 +#endif
    1.98 +IMPORT_C 
    1.99 +char	*strndup(const char *,size_t);
   1.100 +IMPORT_C 
   1.101 +size_t strnlen(const char *,size_t);
   1.102 +IMPORT_C 
   1.103 +char	*strerror(int);
   1.104 +#if __POSIX_VISIBLE >= 200112
   1.105 +IMPORT_C 
   1.106 +int	 strerror_r(int, char *, size_t);
   1.107 +#endif
   1.108 +#if __BSD_VISIBLE
   1.109 +IMPORT_C size_t	 strlcat(char *, const char *, size_t);
   1.110 +IMPORT_C size_t	 strlcpy(char *, const char *, size_t);
   1.111 +#endif
   1.112 +IMPORT_C 
   1.113 +size_t	 strlen(const char *) __pure;
   1.114 +
   1.115 +#if __BSD_VISIBLE
   1.116 +#ifdef __SYMBIAN_COMPILE_UNUSED__
   1.117 +void	 strmode(int, char *);
   1.118 +#endif
   1.119 +
   1.120 +#endif
   1.121 +IMPORT_C 
   1.122 +char	*strncat(char * __restrict, const char * __restrict, size_t);
   1.123 +IMPORT_C 
   1.124 +int	 strncmp(const char *, const char *, size_t) __pure;
   1.125 +IMPORT_C 
   1.126 +char	*strncpy(char * __restrict, const char * __restrict, size_t);
   1.127 +#if __BSD_VISIBLE
   1.128 +IMPORT_C 
   1.129 +char	*strnstr(const char *, const char *, size_t) __pure;
   1.130 +#endif
   1.131 +IMPORT_C 
   1.132 +char	*strpbrk(const char *, const char *) __pure;
   1.133 +IMPORT_C 
   1.134 +char	*strrchr(const char *, int) __pure;
   1.135 +#if __BSD_VISIBLE
   1.136 +IMPORT_C 
   1.137 +char	*strsep(char **, const char *);
   1.138 +#endif
   1.139 +IMPORT_C 
   1.140 +size_t	 strspn(const char *, const char *) __pure;
   1.141 +IMPORT_C 
   1.142 +char	*strstr(const char *, const char *) __pure;
   1.143 +IMPORT_C 
   1.144 +char	*strtok(char * __restrict, const char * __restrict);
   1.145 +#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
   1.146 +IMPORT_C 
   1.147 +char	*strtok_r(char *, const char *, char **);
   1.148 +#endif
   1.149 +IMPORT_C 
   1.150 +size_t	 strxfrm(char * __restrict, const char * __restrict, size_t);
   1.151 +#if __BSD_VISIBLE
   1.152 +
   1.153 +#ifndef _SWAB_DECLARED
   1.154 +#define _SWAB_DECLARED
   1.155 +
   1.156 +#ifndef _SSIZE_T_DECLARED
   1.157 +typedef	__ssize_t	ssize_t;
   1.158 +#define	_SSIZE_T_DECLARED
   1.159 +#endif /* _SIZE_T_DECLARED */
   1.160 +
   1.161 +IMPORT_C 
   1.162 +void	 swab(const void * __restrict, void * __restrict, ssize_t);
   1.163 +#endif /* _SWAB_DECLARED */
   1.164 +
   1.165 +#endif /* __BSD_VISIBLE */
   1.166 +__END_DECLS
   1.167 +
   1.168 +#endif /* _STRING_H_ */