epoc32/include/libc/string.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/libc/string.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/libc/string.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,104 @@
     1.4 -string.h
     1.5 +/*
     1.6 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:
    1.19 +* Definitions for memory and string functions.
    1.20 +* 
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +
    1.26 +
    1.27 +
    1.28 +
    1.29 +
    1.30 +/**
    1.31 + @file
    1.32 + @publishedAll
    1.33 + @released
    1.34 +*/
    1.35 +
    1.36 +#ifndef _STRING_H_
    1.37 +#define	_STRING_H_
    1.38 +
    1.39 +#ifdef __cplusplus
    1.40 +extern "C" {
    1.41 +#endif
    1.42 +
    1.43 +#include "_ansi.h"
    1.44 +
    1.45 +#define __need_size_t
    1.46 +#include <stddef.h>
    1.47 +
    1.48 +#ifndef NULL
    1.49 +#define NULL 0L
    1.50 +#endif
    1.51 +
    1.52 +IMPORT_C void*	memchr		(const void*, int, size_t);
    1.53 +IMPORT_C int 	memcmp		(const void*, const void*, size_t);
    1.54 +IMPORT_C void*	memcpy		(void* dst, const void* src, size_t);
    1.55 +IMPORT_C void*	_e32memcpy	(void* dst, const void* src, size_t);
    1.56 +IMPORT_C void*	memmove		(void*, const void*, size_t);
    1.57 +IMPORT_C void*	memset		(void*, int, size_t);
    1.58 +IMPORT_C char*	strcat		(char *, const char *);
    1.59 +IMPORT_C wchar_t* wcscat	(wchar_t *, const wchar_t *);
    1.60 +IMPORT_C char*	strchr		(const char *, int);
    1.61 +IMPORT_C int	strcmp		(const char *, const char *);
    1.62 +IMPORT_C int	wcscmp		(const wchar_t *, const wchar_t *);
    1.63 +IMPORT_C int	strcoll		(const char *, const char *);
    1.64 +IMPORT_C char*	strcpy		(char *, const char *);
    1.65 +IMPORT_C wchar_t* wcscpy	(wchar_t *, const wchar_t *);
    1.66 +IMPORT_C size_t	strcspn		(const char *, const char *);
    1.67 +IMPORT_C char*	strerror	(int);
    1.68 +IMPORT_C size_t	strlen		(const char *);
    1.69 +IMPORT_C size_t	wcslen		(const wchar_t *);
    1.70 +IMPORT_C char*	strncat		(char *, const char *, size_t);
    1.71 +IMPORT_C int	strncmp		(const char *, const char *, size_t);
    1.72 +IMPORT_C char*	strncpy		(char *, const char *, size_t);
    1.73 +IMPORT_C char*	strpbrk		(const char *, const char *);
    1.74 +IMPORT_C char*	strrchr		(const char *, int);
    1.75 +IMPORT_C size_t	strspn		(const char *, const char *);
    1.76 +IMPORT_C char*	strstr		(const char *, const char *);
    1.77 +IMPORT_C size_t	strxfrm		(char *, const char *, size_t);
    1.78 +
    1.79 +#ifndef _REENT_ONLY
    1.80 +IMPORT_C char*	strtok		(char *, const char *);
    1.81 +#endif
    1.82 +
    1.83 +IMPORT_C char*	strtok_r	(char *, const char *, char **);
    1.84 +
    1.85 +/**
    1.86 +EPOC32 bonus functions - _STRICT_ANSI 
    1.87 +*/
    1.88 +IMPORT_C int	strcasecmp	(const char *, const char *);
    1.89 +IMPORT_C char*	strdup		(const char *);
    1.90 +IMPORT_C wchar_t*	wcsdup		(const wchar_t *);
    1.91 +IMPORT_C int	strncasecmp	(const char *, const char *, size_t);
    1.92 +IMPORT_C char 	*rindex		(const char *, int);
    1.93 +IMPORT_C char 	*index		(const char *, int);
    1.94 +
    1.95 +#ifndef _STRICT_ANSI
    1.96 +int	 bcmp		(const char *, const char *, size_t);
    1.97 +void	 bcopy		(const char *src, char *dst, size_t);
    1.98 +void	 bzero		(char *, size_t);
    1.99 +int	 ffs		(int);
   1.100 +void	*memccpy	(void*, const void*, int, size_t);
   1.101 +char 	*strsep		(char **, const char *);
   1.102 +void	 swab		(const char *, char *, size_t);
   1.103 +#endif /* ! _STRICT_ANSI */
   1.104 +
   1.105 +#ifdef __cplusplus
   1.106 +}
   1.107 +#endif
   1.108 +#endif /* _STRING_H_ */