VirtualBox

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

Last change on this file since 4168 was 4168, checked in by vboxsync, 17 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
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
24void * RT_NOCRT(memchr)(const void *pv, int ch, size_t cb);
25int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb);
26void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
27void * RT_NOCRT(memmove)(void *pvDst, const void *pvSrc, size_t cb);
28void * RT_NOCRT(memset)(void *pvDst, int ch, size_t cb);
29
30char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
31char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
32char * RT_NOCRT(strchr)(const char *psz, int ch);
33int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
34int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
35int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
36int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
37char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
38char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
39char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
40char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
41size_t RT_NOCRT(strlen)(const char *psz);
42size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
43char * 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
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