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