1 | /** @file
|
---|
2 | * InnoTek Portable Runtime / No-CRT - string.h.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License as published by the Free Software Foundation,
|
---|
12 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * If you received this file as part of a commercial VirtualBox
|
---|
17 | * distribution, then only the terms of your commercial VirtualBox
|
---|
18 | * license agreement apply instead of the previous paragraph.
|
---|
19 | */
|
---|
20 |
|
---|
21 |
|
---|
22 | #ifndef __iprt_nocrt_string_h__
|
---|
23 | #define __iprt_nocrt_string_h__
|
---|
24 |
|
---|
25 | #include <iprt/types.h>
|
---|
26 |
|
---|
27 | __BEGIN_DECLS
|
---|
28 |
|
---|
29 | void * RT_NOCRT(memchr)(const void *pv, int ch, size_t cb);
|
---|
30 | int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb);
|
---|
31 | void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
|
---|
32 | void * RT_NOCRT(memmove)(void *pvDst, const void *pvSrc, size_t cb);
|
---|
33 | void * RT_NOCRT(memset)(void *pvDst, int ch, size_t cb);
|
---|
34 |
|
---|
35 | char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
|
---|
36 | char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
37 | char * RT_NOCRT(strchr)(const char *psz, int ch);
|
---|
38 | int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
|
---|
39 | int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
|
---|
40 | int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
|
---|
41 | int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
|
---|
42 | char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
|
---|
43 | char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
44 | char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
|
---|
45 | char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
46 | size_t RT_NOCRT(strlen)(const char *psz);
|
---|
47 | size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
|
---|
48 | char * RT_NOCRT(strstr)(const char *psz, const char *pszSub);
|
---|
49 |
|
---|
50 | #ifndef RT_WITHOUT_NOCRT_WRAPPERS
|
---|
51 | # define memchr RT_NOCRT(memchr)
|
---|
52 | # define memcmp RT_NOCRT(memcmp)
|
---|
53 | # define memcpy RT_NOCRT(memcpy)
|
---|
54 | # define memmove RT_NOCRT(memmove)
|
---|
55 | # define memset RT_NOCRT(memset)
|
---|
56 | # define strcat RT_NOCRT(strcat)
|
---|
57 | # define strncat RT_NOCRT(strncat)
|
---|
58 | # define strchr RT_NOCRT(strchr)
|
---|
59 | # define strcmp RT_NOCRT(strcmp)
|
---|
60 | # define strncmp RT_NOCRT(strncmp)
|
---|
61 | # define stricmp RT_NOCRT(stricmp)
|
---|
62 | # define strnicmp RT_NOCRT(strnicmp)
|
---|
63 | # define strcpy RT_NOCRT(strcpy)
|
---|
64 | # define strncpy RT_NOCRT(strncpy)
|
---|
65 | # define strcat RT_NOCRT(strcat)
|
---|
66 | # define strncat RT_NOCRT(strncat)
|
---|
67 | # define strlen RT_NOCRT(strlen)
|
---|
68 | # define strnlen RT_NOCRT(strnlen)
|
---|
69 | # define strstr RT_NOCRT(strstr)
|
---|
70 | #endif
|
---|
71 |
|
---|
72 | __END_DECLS
|
---|
73 |
|
---|
74 | #endif
|
---|