VirtualBox

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

Last change on this file since 1032 was 1, checked in by vboxsync, 55 years ago

import

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);
37int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
38int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
39int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
40int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
41char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
42char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
43char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
44char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
45size_t RT_NOCRT(strlen)(const char *psz);
46size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
47char * RT_NOCRT(strstr)(const char *psz, const char *pszSub);
48
49#ifndef RT_WITHOUT_NOCRT_WRAPPERS
50# define memchr RT_NOCRT(memchr)
51# define memcmp RT_NOCRT(memcmp)
52# define memcpy RT_NOCRT(memcpy)
53# define memmove RT_NOCRT(memmove)
54# define memset RT_NOCRT(memset)
55# define strcat RT_NOCRT(strcat)
56# define strncat RT_NOCRT(strncat)
57# define strcmp RT_NOCRT(strcmp)
58# define strncmp RT_NOCRT(strncmp)
59# define stricmp RT_NOCRT(stricmp)
60# define strnicmp RT_NOCRT(strnicmp)
61# define strcpy RT_NOCRT(strcpy)
62# define strncpy RT_NOCRT(strncpy)
63# define strcat RT_NOCRT(strcat)
64# define strncat RT_NOCRT(strncat)
65# define strlen RT_NOCRT(strlen)
66# define strnlen RT_NOCRT(strnlen)
67# define strstr RT_NOCRT(strstr)
68#endif
69
70__END_DECLS
71
72#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