StrNCpy (LabVIEW Manager Function)

CStr StrNCpy(dst, src, n);

Purpose

Copies the C string src to the C string dst. If the source string is less than n characters, the function pads the destination with NULL characters. If the source string is greater than n, only n characters are copied. This function assumes dst is large enough to contain src.

Parameters

Name Type Description
dst CStr Pointer to a C string.
src CStr Pointer to a C string.
n size_t Maximum number of characters you want to copy.

Return Value

A copy of the destination C string pointer.