VirtualBox

source: vbox/trunk/include/iprt/nocrt/string.h@ 1174

Last change on this file since 1174 was 1174, checked in by vboxsync, 18 years ago

memcmp, strchr, strcmp.

File size: 2.8 KB
Line 
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
29void * RT_NOCRT(memchr)(const void *pv, int ch, size_t cb);
30int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb);
31void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
32void * RT_NOCRT(memmove)(void *pvDst, const void *pvSrc, size_t cb);
33void * RT_NOCRT(memset)(void *pvDst, int ch, size_t cb);
34
35char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
36char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
37char * RT_NOCRT(strchr)(const char *psz, int ch);
38int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
39int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
40int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
41int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
42char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
43char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
44char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
45char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
46size_t RT_NOCRT(strlen)(const char *psz);
47size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
48char * 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
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette