1 | /** @file
|
---|
2 | * innotek Portable Runtime / No-CRT - string.h.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 innotek 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 |
|
---|
17 | #ifndef ___iprt_nocrt_string_h
|
---|
18 | #define ___iprt_nocrt_string_h
|
---|
19 |
|
---|
20 | #include <iprt/types.h>
|
---|
21 |
|
---|
22 | __BEGIN_DECLS
|
---|
23 |
|
---|
24 | void * RT_NOCRT(memchr)(const void *pv, int ch, size_t cb);
|
---|
25 | int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb);
|
---|
26 | void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
|
---|
27 | void * RT_NOCRT(memmove)(void *pvDst, const void *pvSrc, size_t cb);
|
---|
28 | void * RT_NOCRT(memset)(void *pvDst, int ch, size_t cb);
|
---|
29 |
|
---|
30 | char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
|
---|
31 | char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
32 | char * RT_NOCRT(strchr)(const char *psz, int ch);
|
---|
33 | int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
|
---|
34 | int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
|
---|
35 | int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
|
---|
36 | int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
|
---|
37 | char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
|
---|
38 | char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
39 | char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
|
---|
40 | char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
|
---|
41 | size_t RT_NOCRT(strlen)(const char *psz);
|
---|
42 | size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
|
---|
43 | char * RT_NOCRT(strstr)(const char *psz, const char *pszSub);
|
---|
44 |
|
---|
45 | #ifndef RT_WITHOUT_NOCRT_WRAPPERS
|
---|
46 | # define memchr RT_NOCRT(memchr)
|
---|
47 | # define memcmp RT_NOCRT(memcmp)
|
---|
48 | # define memcpy RT_NOCRT(memcpy)
|
---|
49 | # define memmove RT_NOCRT(memmove)
|
---|
50 | # define memset RT_NOCRT(memset)
|
---|
51 | # define strcat RT_NOCRT(strcat)
|
---|
52 | # define strncat RT_NOCRT(strncat)
|
---|
53 | # define strchr RT_NOCRT(strchr)
|
---|
54 | # define strcmp RT_NOCRT(strcmp)
|
---|
55 | # define strncmp RT_NOCRT(strncmp)
|
---|
56 | # define stricmp RT_NOCRT(stricmp)
|
---|
57 | # define strnicmp RT_NOCRT(strnicmp)
|
---|
58 | # define strcpy RT_NOCRT(strcpy)
|
---|
59 | # define strncpy RT_NOCRT(strncpy)
|
---|
60 | # define strcat RT_NOCRT(strcat)
|
---|
61 | # define strncat RT_NOCRT(strncat)
|
---|
62 | # define strlen RT_NOCRT(strlen)
|
---|
63 | # define strnlen RT_NOCRT(strnlen)
|
---|
64 | # define strstr RT_NOCRT(strstr)
|
---|
65 | #endif
|
---|
66 |
|
---|
67 | __END_DECLS
|
---|
68 |
|
---|
69 | #endif
|
---|