os/ossrv/genericopenlibs/cstdlib/LINC/STRING.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Definitions for memory and string functions.
    16 * 
    17 *
    18 */
    19 
    20 
    21 
    22 /**
    23  @file
    24  @publishedAll
    25  @released
    26 */
    27 
    28 #ifndef _STRING_H_
    29 #define	_STRING_H_
    30 
    31 #ifdef __cplusplus
    32 extern "C" {
    33 #endif
    34 
    35 #include "_ansi.h"
    36 
    37 #define __need_size_t
    38 #include <stddef.h>
    39 
    40 #ifndef NULL
    41 #define NULL 0L
    42 #endif
    43 
    44 IMPORT_C void*	memchr		(const void*, int, size_t);
    45 IMPORT_C int 	memcmp		(const void*, const void*, size_t);
    46 IMPORT_C void*	memcpy		(void* dst, const void* src, size_t);
    47 IMPORT_C void*	_e32memcpy	(void* dst, const void* src, size_t);
    48 IMPORT_C void*	memmove		(void*, const void*, size_t);
    49 IMPORT_C void*	memset		(void*, int, size_t);
    50 IMPORT_C char*	strcat		(char *, const char *);
    51 IMPORT_C wchar_t* wcscat	(wchar_t *, const wchar_t *);
    52 IMPORT_C char*	strchr		(const char *, int);
    53 IMPORT_C int	strcmp		(const char *, const char *);
    54 IMPORT_C int	wcscmp		(const wchar_t *, const wchar_t *);
    55 IMPORT_C int	strcoll		(const char *, const char *);
    56 IMPORT_C char*	strcpy		(char *, const char *);
    57 IMPORT_C wchar_t* wcscpy	(wchar_t *, const wchar_t *);
    58 IMPORT_C size_t	strcspn		(const char *, const char *);
    59 IMPORT_C char*	strerror	(int);
    60 IMPORT_C size_t	strlen		(const char *);
    61 IMPORT_C size_t	wcslen		(const wchar_t *);
    62 IMPORT_C char*	strncat		(char *, const char *, size_t);
    63 IMPORT_C int	strncmp		(const char *, const char *, size_t);
    64 IMPORT_C char*	strncpy		(char *, const char *, size_t);
    65 IMPORT_C char*	strpbrk		(const char *, const char *);
    66 IMPORT_C char*	strrchr		(const char *, int);
    67 IMPORT_C size_t	strspn		(const char *, const char *);
    68 IMPORT_C char*	strstr		(const char *, const char *);
    69 IMPORT_C size_t	strxfrm		(char *, const char *, size_t);
    70 
    71 #ifndef _REENT_ONLY
    72 IMPORT_C char*	strtok		(char *, const char *);
    73 #endif
    74 
    75 IMPORT_C char*	strtok_r	(char *, const char *, char **);
    76 
    77 /**
    78 EPOC32 bonus functions - _STRICT_ANSI 
    79 */
    80 IMPORT_C int	strcasecmp	(const char *, const char *);
    81 IMPORT_C char*	strdup		(const char *);
    82 IMPORT_C wchar_t*	wcsdup		(const wchar_t *);
    83 IMPORT_C int	strncasecmp	(const char *, const char *, size_t);
    84 IMPORT_C char 	*rindex		(const char *, int);
    85 IMPORT_C char 	*index		(const char *, int);
    86 
    87 #ifndef _STRICT_ANSI
    88 int	 bcmp		(const char *, const char *, size_t);
    89 void	 bcopy		(const char *src, char *dst, size_t);
    90 void	 bzero		(char *, size_t);
    91 int	 ffs		(int);
    92 void	*memccpy	(void*, const void*, int, size_t);
    93 char 	*strsep		(char **, const char *);
    94 void	 swab		(const char *, char *, size_t);
    95 #endif /* ! _STRICT_ANSI */
    96 
    97 #ifdef __cplusplus
    98 }
    99 #endif
   100 #endif /* _STRING_H_ */