epoc32/include/stdapis/string.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
/*-
williamr@2
     2
 * Copyright (c) 1990, 1993
williamr@2
     3
 *	The Regents of the University of California.  All rights reserved.
williamr@2
     4
 *
williamr@2
     5
 * Redistribution and use in source and binary forms, with or without
williamr@2
     6
 * modification, are permitted provided that the following conditions
williamr@2
     7
 * are met:
williamr@2
     8
 * 1. Redistributions of source code must retain the above copyright
williamr@2
     9
 *    notice, this list of conditions and the following disclaimer.
williamr@2
    10
 * 2. Redistributions in binary form must reproduce the above copyright
williamr@2
    11
 *    notice, this list of conditions and the following disclaimer in the
williamr@2
    12
 *    documentation and/or other materials provided with the distribution.
williamr@2
    13
 * 4. Neither the name of the University nor the names of its contributors
williamr@2
    14
 *    may be used to endorse or promote products derived from this software
williamr@2
    15
 *    without specific prior written permission.
williamr@2
    16
 *
williamr@2
    17
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
williamr@2
    18
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
williamr@2
    19
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
williamr@2
    20
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
williamr@2
    21
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
williamr@2
    22
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
williamr@2
    23
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
williamr@2
    24
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
williamr@2
    25
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
williamr@2
    26
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
williamr@2
    27
 * SUCH DAMAGE.
williamr@2
    28
 *
williamr@2
    29
 *	@(#)string.h	8.1 (Berkeley) 6/2/93
williamr@2
    30
 * $FreeBSD: src/include/string.h,v 1.21.2.1 2005/08/29 18:46:39 andre Exp $
williamr@2
    31
 *  © Portions copyright (c) 2005-2006  Nokia Corporation.  All rights reserved.
williamr@2
    32
 */
williamr@2
    33
williamr@2
    34
#ifndef _STRING_H_
williamr@2
    35
#define	_STRING_H_
williamr@2
    36
williamr@2
    37
#include <sys/cdefs.h>
williamr@2
    38
#include <sys/_null.h>
williamr@2
    39
#include <sys/_types.h>
williamr@2
    40
williamr@2
    41
#ifdef __SYMBIAN32__
williamr@2
    42
#include <_ansi.h>
williamr@2
    43
#endif
williamr@2
    44
/*
williamr@2
    45
 * Prototype functions which were historically defined in <string.h>, but
williamr@2
    46
 * are required by POSIX to be prototyped in <strings.h>.
williamr@2
    47
 */
williamr@2
    48
#if __BSD_VISIBLE
williamr@2
    49
#include <strings.h>
williamr@2
    50
#endif
williamr@2
    51
williamr@2
    52
#ifndef _SIZE_T_DECLARED
williamr@2
    53
typedef	__size_t	size_t;
williamr@2
    54
#define	_SIZE_T_DECLARED
williamr@2
    55
#endif
williamr@2
    56
williamr@2
    57
__BEGIN_DECLS
williamr@2
    58
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
williamr@2
    59
IMPORT_C 
williamr@2
    60
void	*memccpy(void * __restrict, const void * __restrict, int, size_t);
williamr@2
    61
#endif
williamr@2
    62
IMPORT_C 
williamr@2
    63
void	*memchr(const void *, int, size_t) __pure;
williamr@2
    64
IMPORT_C 
williamr@2
    65
int	 memcmp(const void *, const void *, size_t) __pure;
williamr@2
    66
IMPORT_C 
williamr@2
    67
void	*memcpy(void * __restrict, const void * __restrict, size_t);
williamr@2
    68
IMPORT_C 
williamr@2
    69
void	*memmove(void *, const void *, size_t);
williamr@2
    70
IMPORT_C 
williamr@2
    71
void	*memset(void *, int, size_t);
williamr@2
    72
#if __BSD_VISIBLE
williamr@2
    73
IMPORT_C 
williamr@2
    74
char	*stpcpy(char *, const char *);
williamr@2
    75
IMPORT_C 
williamr@2
    76
char	*strcasestr(const char *, const char *) __pure;
williamr@2
    77
#endif
williamr@2
    78
IMPORT_C 
williamr@2
    79
char	*strcat(char * __restrict, const char * __restrict);
williamr@2
    80
IMPORT_C 
williamr@2
    81
char	*strchr(const char *, int) __pure;
williamr@2
    82
IMPORT_C 
williamr@2
    83
int	 strcmp(const char *, const char *) __pure;
williamr@2
    84
IMPORT_C 
williamr@2
    85
int	 strcoll(const char *, const char *);
williamr@2
    86
IMPORT_C 
williamr@2
    87
char	*strcpy(char * __restrict, const char * __restrict);
williamr@2
    88
IMPORT_C 
williamr@2
    89
size_t	 strcspn(const char *, const char *) __pure;
williamr@2
    90
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
williamr@2
    91
IMPORT_C 
williamr@2
    92
char	*strdup(const char *);
williamr@2
    93
#endif
williamr@2
    94
IMPORT_C 
williamr@2
    95
char	*strndup(const char *,size_t);
williamr@2
    96
IMPORT_C 
williamr@2
    97
size_t strnlen(const char *,size_t);
williamr@2
    98
IMPORT_C 
williamr@2
    99
char	*strerror(int);
williamr@2
   100
#if __POSIX_VISIBLE >= 200112
williamr@2
   101
IMPORT_C 
williamr@2
   102
int	 strerror_r(int, char *, size_t);
williamr@2
   103
#endif
williamr@2
   104
#if __BSD_VISIBLE
williamr@2
   105
IMPORT_C size_t	 strlcat(char *, const char *, size_t);
williamr@2
   106
IMPORT_C size_t	 strlcpy(char *, const char *, size_t);
williamr@2
   107
#endif
williamr@2
   108
IMPORT_C 
williamr@2
   109
size_t	 strlen(const char *) __pure;
williamr@2
   110
williamr@2
   111
#if __BSD_VISIBLE
williamr@2
   112
#ifdef __SYMBIAN_COMPILE_UNUSED__
williamr@2
   113
void	 strmode(int, char *);
williamr@2
   114
#endif
williamr@2
   115
williamr@2
   116
#endif
williamr@2
   117
IMPORT_C 
williamr@2
   118
char	*strncat(char * __restrict, const char * __restrict, size_t);
williamr@2
   119
IMPORT_C 
williamr@2
   120
int	 strncmp(const char *, const char *, size_t) __pure;
williamr@2
   121
IMPORT_C 
williamr@2
   122
char	*strncpy(char * __restrict, const char * __restrict, size_t);
williamr@2
   123
#if __BSD_VISIBLE
williamr@2
   124
IMPORT_C 
williamr@2
   125
char	*strnstr(const char *, const char *, size_t) __pure;
williamr@2
   126
#endif
williamr@2
   127
IMPORT_C 
williamr@2
   128
char	*strpbrk(const char *, const char *) __pure;
williamr@2
   129
IMPORT_C 
williamr@2
   130
char	*strrchr(const char *, int) __pure;
williamr@2
   131
#if __BSD_VISIBLE
williamr@2
   132
IMPORT_C 
williamr@2
   133
char	*strsep(char **, const char *);
williamr@2
   134
#endif
williamr@2
   135
IMPORT_C 
williamr@2
   136
size_t	 strspn(const char *, const char *) __pure;
williamr@2
   137
IMPORT_C 
williamr@2
   138
char	*strstr(const char *, const char *) __pure;
williamr@2
   139
IMPORT_C 
williamr@2
   140
char	*strtok(char * __restrict, const char * __restrict);
williamr@2
   141
#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
williamr@2
   142
IMPORT_C 
williamr@2
   143
char	*strtok_r(char *, const char *, char **);
williamr@2
   144
#endif
williamr@2
   145
IMPORT_C 
williamr@2
   146
size_t	 strxfrm(char * __restrict, const char * __restrict, size_t);
williamr@2
   147
#if __BSD_VISIBLE
williamr@2
   148
williamr@2
   149
#ifndef _SWAB_DECLARED
williamr@2
   150
#define _SWAB_DECLARED
williamr@2
   151
williamr@2
   152
#ifndef _SSIZE_T_DECLARED
williamr@2
   153
typedef	__ssize_t	ssize_t;
williamr@2
   154
#define	_SSIZE_T_DECLARED
williamr@2
   155
#endif /* _SIZE_T_DECLARED */
williamr@2
   156
williamr@2
   157
IMPORT_C 
williamr@2
   158
void	 swab(const void * __restrict, void * __restrict, ssize_t);
williamr@2
   159
#endif /* _SWAB_DECLARED */
williamr@2
   160
williamr@2
   161
#endif /* __BSD_VISIBLE */
williamr@2
   162
__END_DECLS
williamr@2
   163
williamr@2
   164
#endif /* _STRING_H_ */