LenStrCpy

Copies a length-preceded ASCII string to another string.

Library:LibC
Service:Characters and Strings

Syntax

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

Parameters

destStr

(OUT) Points to the destination string.

srcStr

(IN) Points to the source string.

Return Values

Returns a pointer to destStr.

Remarks

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