contents   index   previous   next



Clib.strncat()

syntax:

Clib.strncat(dstStr, srcStr, maxLen)

where:

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

 

srcStr - source string to append to dstStr.

 

maxLen - maximum number of characters to append from srcStr.

 

return:

string - the value of the destination string after the source string characters have been appended.

 

description:

This method appends up to maxLen bytes of srcStr onto the end of dstStr. Characters following a null byte in srcStr are not copied. The dstStr array is made big enough to hold:

 

Clib.min( Clib.strlen(srcStr),maxLen)

 

characters and a terminating null character. The final value of dstStr is returned.

 

see:

Clib.strcat()

 

 


Clib.strncmp()