1 string.h |
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 |
|
24 |
|
25 |
|
26 /** |
|
27 @file |
|
28 @publishedAll |
|
29 @released |
|
30 */ |
|
31 |
|
32 #ifndef _STRING_H_ |
|
33 #define _STRING_H_ |
|
34 |
|
35 #ifdef __cplusplus |
|
36 extern "C" { |
|
37 #endif |
|
38 |
|
39 #include "_ansi.h" |
|
40 |
|
41 #define __need_size_t |
|
42 #include <stddef.h> |
|
43 |
|
44 #ifndef NULL |
|
45 #define NULL 0L |
|
46 #endif |
|
47 |
|
48 IMPORT_C void* memchr (const void*, int, size_t); |
|
49 IMPORT_C int memcmp (const void*, const void*, size_t); |
|
50 IMPORT_C void* memcpy (void* dst, const void* src, size_t); |
|
51 IMPORT_C void* _e32memcpy (void* dst, const void* src, size_t); |
|
52 IMPORT_C void* memmove (void*, const void*, size_t); |
|
53 IMPORT_C void* memset (void*, int, size_t); |
|
54 IMPORT_C char* strcat (char *, const char *); |
|
55 IMPORT_C wchar_t* wcscat (wchar_t *, const wchar_t *); |
|
56 IMPORT_C char* strchr (const char *, int); |
|
57 IMPORT_C int strcmp (const char *, const char *); |
|
58 IMPORT_C int wcscmp (const wchar_t *, const wchar_t *); |
|
59 IMPORT_C int strcoll (const char *, const char *); |
|
60 IMPORT_C char* strcpy (char *, const char *); |
|
61 IMPORT_C wchar_t* wcscpy (wchar_t *, const wchar_t *); |
|
62 IMPORT_C size_t strcspn (const char *, const char *); |
|
63 IMPORT_C char* strerror (int); |
|
64 IMPORT_C size_t strlen (const char *); |
|
65 IMPORT_C size_t wcslen (const wchar_t *); |
|
66 IMPORT_C char* strncat (char *, const char *, size_t); |
|
67 IMPORT_C int strncmp (const char *, const char *, size_t); |
|
68 IMPORT_C char* strncpy (char *, const char *, size_t); |
|
69 IMPORT_C char* strpbrk (const char *, const char *); |
|
70 IMPORT_C char* strrchr (const char *, int); |
|
71 IMPORT_C size_t strspn (const char *, const char *); |
|
72 IMPORT_C char* strstr (const char *, const char *); |
|
73 IMPORT_C size_t strxfrm (char *, const char *, size_t); |
|
74 |
|
75 #ifndef _REENT_ONLY |
|
76 IMPORT_C char* strtok (char *, const char *); |
|
77 #endif |
|
78 |
|
79 IMPORT_C char* strtok_r (char *, const char *, char **); |
|
80 |
|
81 /** |
|
82 EPOC32 bonus functions - _STRICT_ANSI |
|
83 */ |
|
84 IMPORT_C int strcasecmp (const char *, const char *); |
|
85 IMPORT_C char* strdup (const char *); |
|
86 IMPORT_C wchar_t* wcsdup (const wchar_t *); |
|
87 IMPORT_C int strncasecmp (const char *, const char *, size_t); |
|
88 IMPORT_C char *rindex (const char *, int); |
|
89 IMPORT_C char *index (const char *, int); |
|
90 |
|
91 #ifndef _STRICT_ANSI |
|
92 int bcmp (const char *, const char *, size_t); |
|
93 void bcopy (const char *src, char *dst, size_t); |
|
94 void bzero (char *, size_t); |
|
95 int ffs (int); |
|
96 void *memccpy (void*, const void*, int, size_t); |
|
97 char *strsep (char **, const char *); |
|
98 void swab (const char *, char *, size_t); |
|
99 #endif /* ! _STRICT_ANSI */ |
|
100 |
|
101 #ifdef __cplusplus |
|
102 } |
|
103 #endif |
|
104 #endif /* _STRING_H_ */ |