ReactOS
0.4.16-dev-1946-g52006dd
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
11
#include <
corecrt_internal_mbstring.h
>
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
32
extern
"C"
void
__cdecl
_mbccpy_l
(
33
unsigned
char
*
dst
,
34
const
unsigned
char
*
src
,
35
_locale_t
plocinfo
36
)
37
{
38
/* _mbccpy_s_l sets errno */
39
_mbccpy_s_l
(
dst
, 2,
nullptr
,
src
,
plocinfo
);
40
}
41
42
extern
"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
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal_mbstring.h
src
GLenum src
Definition:
glext.h:6340
dst
GLenum GLenum dst
Definition:
glext.h:6340
_mbccpy
_CRTIMP void __cdecl _mbccpy(_Out_writes_bytes_(2) unsigned char *_Dst, _In_z_ const unsigned char *_Src)
void
Definition:
nsiface.idl:2307
plocinfo
_locale_t plocinfo
Definition:
ismbbyte.cpp:75
src
const unsigned char * src
Definition:
mbccpy.cpp:46
_mbccpy_l
void __cdecl _mbccpy_l(unsigned char *dst, const unsigned char *src, _locale_t plocinfo)
Definition:
mbccpy.cpp:32
_mbccpy_s_l
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
localeinfo_struct
Definition:
corecrt.h:22
sdk
lib
ucrt
mbstring
mbccpy.cpp
Generated on Thu Dec 4 2025 06:16:20 for ReactOS by
1.9.6