ReactOS 0.4.16-dev-1059-gb1cf981
mbccpy.cpp
Go to the documentation of this file.
1/***
2*mbccpy.c - Copy one character to another (MBCS)
3*
4* Copyright (c) Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* Copy one MBCS character to another (1 or 2 bytes)
8*
9*******************************************************************************/
10
12#include <locale.h>
13
14/***
15* _mbccpy - Copy one character to another (MBCS)
16*
17*Purpose:
18* Copies exactly one MBCS character from src to dst. Copies _mbclen(src)
19* bytes from src to dst.
20*
21*Entry:
22* unsigned char *dst = destination for copy
23* unsigned char *src = source for copy
24*
25*Exit:
26*
27*Exceptions:
28* Input parameters are validated. Refer to the validation section of the function.
29*
30*******************************************************************************/
31
32extern "C" void __cdecl _mbccpy_l(
33 unsigned char *dst,
34 const unsigned char *src,
36 )
37{
38 /* _mbccpy_s_l sets errno */
39 _mbccpy_s_l(dst, 2, nullptr, src, plocinfo);
40}
41
42extern "C" void (__cdecl _mbccpy)(
43 unsigned char *dst,
44 const unsigned char *src
45 )
46{
47 _mbccpy_s_l(dst, 2, nullptr, src, nullptr);
48}
#define __cdecl
Definition: accygwin.h:79
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
_CRTIMP void __cdecl _mbccpy(_Out_writes_bytes_(2) unsigned char *_Dst, _In_z_ const unsigned char *_Src)
_locale_t plocinfo
Definition: ismbbyte.cpp:75
const unsigned char * src
Definition: mbccpy.cpp:46
void __cdecl _mbccpy_l(unsigned char *dst, const unsigned char *src, _locale_t plocinfo)
Definition: mbccpy.cpp:32
errno_t __cdecl _mbccpy_s_l(unsigned char *_Dst, size_t _SizeInBytes, int *_PCopied, const unsigned char *_Src, _LOCALE_ARG_DECL)
Definition: mbccpy_s_l.cpp:17