<< Previous | Next >>

xmemcmp

int xmemcmp( long xstr, char * str, unsigned short n );

Description

Test whether xmem string at xstr matches the root memory string at str. n bytes are compared.

Parameters

xstr
xmem (linear) address of the first character of the first string to compare.

str
root address of the first character of the second string to compare.

n
Length of each string. If n is zero, returns zero. n must be less than or equal 4097.

Return value

 0: Exact match.
>0: xstr > str
<0
: xstr < str

Library

XMEM.LIB


Dynamic C Functions << Previous | Next >> rabbit.com