LenStrCmp

Compares two length-preceded ASCII strings

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

Syntax

  #include <nwstring.h>  
   
  int LenStrCmp  (  
     char   *string1,  
     char   *string2);
  

Parameters

string1
(IN) Points to the first string to be compared.
string2
(IN) Points to the second string to be compared.

Return Values

Remarks

LenStrCmp compares two ASCII strings preceded by a byte length. The string1 and string2 parameters are two ASCII strings with the length of the string being the first byte of the string. This function emulates the standard strcmp function but works with length-preceded strings rather than NULL-terminated strings.