MKI_CopyPartA (Strings) Changed in Version 2019.1

www.CAD6.com

C++ Syntax

void

MKI_CopyPartA(

 LPSTR f_pszDestin,

 const size_t f_unMaxSize,

 LPCSTR f_pszSource1,

 const size_t f_unCharCount );

 

template <size_t f_unSize> void

MKI_CopyPartA(

 char (&f_rDestin)[f_unSize],

 LPCSTR f_pszSource1,

 const size_t f_unCharCount );

 

Copies a part of one Ansi or UTF-8 text to another Ansi or UTF-8 text.

 

Parameters

f_pszDestin / f_rDestin

[LPSTR] Pointer to or [char[]&] Reference to the destination text.

f_unMaxSize

[const size_t] Maximum allowed length of the destination text in Ansi or UTF-8 characters including the terminating '\0' character.

f_pszSource1

[LPCSTR] Address of the source text.

f_unCharCount

[const size_t] Maximum number of Ansi characters to be copied. A terminating '\0' character will also stop the copying.

 

Comment

It is guaranteed that the resulting text will always be terminated with a '\0' character!

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH