LenStrCpy

Copies a length-preceded ASCII string to another string

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:String Manipulation

Syntax

  #include <nwstring.h>  
   
  char *LenStrCpy  (  
     char   *destStr,   
     char   *srcStr);
  

Parameters

destStr
(OUT) Points to the destination string.
srcStr
(IN) Points to the source string.

Return Values

LenStrCpy returns a pointer to destStr.

Remarks

The developer must ensure that the destStr parameter is large enough to contain the srcStr parameter. The source and destination strings are two ASCII strings with the length of the string being the first byte of the string. This function is similar to the standard strcpy function but works with length-preceded strings rather than NULL-terminated strings.