contents   index   previous   next



Clib.strcat()

syntax:

Clib.strcat(dstStr, srcStr)

where:

dstStr - destination string to which to add srcStr and to hold the final result.

 

srcStr - source string to append to dstStr.

 

return:

string - the resulting string from concatenating dstStr and srcStr.

 

description:

This method appends srcStr string onto the end of dstStr string. The dstStr string is made big enough to hold srcStr, and a terminating null byte. In ScriptEase, a string copy is safe, so that you can copy from one part of a string to another part of itself.

 

The return is the value of dstStr, that is, a variable pointing to the dstStr array starting at dstStr[0].

 

see:

Clib.strcpy(), Clib.memcpy()

 

example:

// The result of the following code is:

//  Giant == "Fee Fie Foe Fum"

 

var Giant = "Fee";

   // add Fie

Clib.strcat(Giant, " Fie");

   // add Foe

Clib.strcat(Giant, " Foe");

   // add Fum

Clib.strcat(Giant, " Fum");

 


Clib.strchr()