Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

StrNCpy (CIN Function)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit