sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Definitions for memory and string functions. sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifndef _STRING_H_ sl@0: #define _STRING_H_ sl@0: sl@0: #ifdef __cplusplus sl@0: extern "C" { sl@0: #endif sl@0: sl@0: #include "_ansi.h" sl@0: sl@0: #define __need_size_t sl@0: #include sl@0: sl@0: #ifndef NULL sl@0: #define NULL 0L sl@0: #endif sl@0: sl@0: IMPORT_C void* memchr (const void*, int, size_t); sl@0: IMPORT_C int memcmp (const void*, const void*, size_t); sl@0: IMPORT_C void* memcpy (void* dst, const void* src, size_t); sl@0: IMPORT_C void* _e32memcpy (void* dst, const void* src, size_t); sl@0: IMPORT_C void* memmove (void*, const void*, size_t); sl@0: IMPORT_C void* memset (void*, int, size_t); sl@0: IMPORT_C char* strcat (char *, const char *); sl@0: IMPORT_C wchar_t* wcscat (wchar_t *, const wchar_t *); sl@0: IMPORT_C char* strchr (const char *, int); sl@0: IMPORT_C int strcmp (const char *, const char *); sl@0: IMPORT_C int wcscmp (const wchar_t *, const wchar_t *); sl@0: IMPORT_C int strcoll (const char *, const char *); sl@0: IMPORT_C char* strcpy (char *, const char *); sl@0: IMPORT_C wchar_t* wcscpy (wchar_t *, const wchar_t *); sl@0: IMPORT_C size_t strcspn (const char *, const char *); sl@0: IMPORT_C char* strerror (int); sl@0: IMPORT_C size_t strlen (const char *); sl@0: IMPORT_C size_t wcslen (const wchar_t *); sl@0: IMPORT_C char* strncat (char *, const char *, size_t); sl@0: IMPORT_C int strncmp (const char *, const char *, size_t); sl@0: IMPORT_C char* strncpy (char *, const char *, size_t); sl@0: IMPORT_C char* strpbrk (const char *, const char *); sl@0: IMPORT_C char* strrchr (const char *, int); sl@0: IMPORT_C size_t strspn (const char *, const char *); sl@0: IMPORT_C char* strstr (const char *, const char *); sl@0: IMPORT_C size_t strxfrm (char *, const char *, size_t); sl@0: sl@0: #ifndef _REENT_ONLY sl@0: IMPORT_C char* strtok (char *, const char *); sl@0: #endif sl@0: sl@0: IMPORT_C char* strtok_r (char *, const char *, char **); sl@0: sl@0: /** sl@0: EPOC32 bonus functions - _STRICT_ANSI sl@0: */ sl@0: IMPORT_C int strcasecmp (const char *, const char *); sl@0: IMPORT_C char* strdup (const char *); sl@0: IMPORT_C wchar_t* wcsdup (const wchar_t *); sl@0: IMPORT_C int strncasecmp (const char *, const char *, size_t); sl@0: IMPORT_C char *rindex (const char *, int); sl@0: IMPORT_C char *index (const char *, int); sl@0: sl@0: #ifndef _STRICT_ANSI sl@0: int bcmp (const char *, const char *, size_t); sl@0: void bcopy (const char *src, char *dst, size_t); sl@0: void bzero (char *, size_t); sl@0: int ffs (int); sl@0: void *memccpy (void*, const void*, int, size_t); sl@0: char *strsep (char **, const char *); sl@0: void swab (const char *, char *, size_t); sl@0: #endif /* ! _STRICT_ANSI */ sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif sl@0: #endif /* _STRING_H_ */