LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

strcpy

strcpy

char *strcpy (char targetString[], const char sourceString[]);

Purpose

Copies a source string including the terminating ASCII NUL byte into a target string. If copying takes place between objects that overlap, the behavior is undefined.

Parameters

Input
Name Type Description
sourceString const char [] Contains a pointer to the NUL-terminated source string that is copied into the target string.
Output
Name Type Description
targetString char [] Contains the target string to which the source string is copied including the terminating ASCII NUL byte.

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 strcpy function:

  • apps\uirview\uirview.cws

    Open example
  • toolbox\ini.cws

    Open example
  • userint\events.cws

    Open example
Was this information helpful?

Previous

strlen

Previous

strlen