_mbsnbcpy
- Updated2023-02-21
- 2 minute(s) read
_mbsnbcpy
char *_mbsnbcpy (char targetString[], const char sourceString[], size_t maxBytes);
Purpose
Copies a specified number of bytes from a source string to a target string. The function does not copy bytes following an ASCII NUL byte. If copying takes place between two objects that overlap, the behavior is undefined.
Refer to the Programming for Multibyte Character Sets in LabWindows/CVI topic for information about working with multibyte character sets.
Parameters
Input | ||
Name | Type | Description |
sourceString | const char [] | Contains a pointer to the NUL-terminated source string from which a specified number of bytes are copied into the target string. |
maxBytes | size_t |
Specifies the maximum number of bytes that are copied from the source string
into the target string, according to the following conditions:
|
Output | ||
Name | Type | Description |
targetString | char [] |
Contains the target string to which the specified number of bytes from the
source string is copied, according to the following conditions:
|
Return Value
Name | Type | Description |
returnedTargetString | char * | Contains a pointer to the modified target string. |
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later