VirtualBox

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

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

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
File size: 3.0 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 (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef ___iprt_nocrt_string_h
27#define ___iprt_nocrt_string_h
28
29#include <iprt/types.h>
30
31__BEGIN_DECLS
32
33void * RT_NOCRT(memchr)(const void *pv, int ch, size_t cb);
34int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb);
35void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
36void * RT_NOCRT(memmove)(void *pvDst, const void *pvSrc, size_t cb);
37void * RT_NOCRT(memset)(void *pvDst, int ch, size_t cb);
38
39char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
40char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
41char * RT_NOCRT(strchr)(const char *psz, int ch);
42int RT_NOCRT(strcmp)(char *psz1, const char *psz2);
43int RT_NOCRT(strncmp)(char *psz1, const char *psz2, size_t cch);
44int RT_NOCRT(stricmp)(char *psz1, const char *psz2);
45int RT_NOCRT(strnicmp)(char *psz1, const char *psz2, size_t cch);
46char * RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc);
47char * RT_NOCRT(strncpy)(char *pszDst, const char *pszSrc, size_t cch);
48char * RT_NOCRT(strcat)(char *pszDst, const char *pszSrc);
49char * RT_NOCRT(strncat)(char *pszDst, const char *pszSrc, size_t cch);
50size_t RT_NOCRT(strlen)(const char *psz);
51size_t RT_NOCRT(strnlen)(const char *psz, size_t cch);
52char * RT_NOCRT(strstr)(const char *psz, const char *pszSub);
53
54#ifndef RT_WITHOUT_NOCRT_WRAPPERS
55# define memchr RT_NOCRT(memchr)
56# define memcmp RT_NOCRT(memcmp)
57# define memcpy RT_NOCRT(memcpy)
58# define memmove RT_NOCRT(memmove)
59# define memset RT_NOCRT(memset)
60# define strcat RT_NOCRT(strcat)
61# define strncat RT_NOCRT(strncat)
62# define strchr RT_NOCRT(strchr)
63# define strcmp RT_NOCRT(strcmp)
64# define strncmp RT_NOCRT(strncmp)
65# define stricmp RT_NOCRT(stricmp)
66# define strnicmp RT_NOCRT(strnicmp)
67# define strcpy RT_NOCRT(strcpy)
68# define strncpy RT_NOCRT(strncpy)
69# define strcat RT_NOCRT(strcat)
70# define strncat RT_NOCRT(strncat)
71# define strlen RT_NOCRT(strlen)
72# define strnlen RT_NOCRT(strnlen)
73# define strstr RT_NOCRT(strstr)
74#endif
75
76__END_DECLS
77
78#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