Admin Production ni-theme
Current Publication

strcat

LabWindows/CVI

strcat

char *strcat (char targetString[], const char stringToAppend[]);

Purpose

Appends a copy of a source string to the end of a target string, including the terminating ASCII NUL byte. The initial character of the string to append overwrites the NUL byte at the end of the target string. If copying takes place between objects that overlap, the behavior is undefined.

Parameters

Input
Name Type Description
stringToAppend const char [] Contains a pointer to the NUL-terminated string that is appended to the end of targetString. The initial character of this string overwrites the NUL byte at the end of the target string.
Output
Name Type Description
targetString char [] Contains the target string to which string_toAppend is appended. The initial character of string_toAppend overwrites the NUL byte at the end of the string specified in this parameter.

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 3.0 and later

Examples

Refer to the following examples that use the strcat function:

  • userint\events.cws

    Open example
  • userint\listdelx.cws

    Open example