strcpy

strcpy — Assign value to a string variable

Description

Assign to a string variable by copying the source which may be a constant or another string variable. strcpy and = copy the string at i-time only, while strcpyk does the assignment both at initialization and performance time.

Syntax

Sdst strcpy Ssrc
Sdst = Ssrc
Sdst strcpyk Ssrc

Example

Sfoo    strcpy "Hello, world !"
        puts Sfoo, 1
    

Credits

Author: Istvan Varga
2005