int kstring_subcmp(
const char *istr1,
const char *istr2)
INPUT
istr1 - The base string to be compared.
istr2 - The sub-string to be compared.
OUTPUT
none
RETURN VALUE
If the two strings up to the end of the second string are
identical, the value of 0 is returned.
If the two strings differ, the ASCII value difference of
the first character that differs in the two strings will be
returned. If the ASCII value of the differing character
in 'istr1' is greater than the one in 'istr2', then the return
value is positive, and implies that 'istr1' is greater than
'istr2'. If the difference between the two ASCII values is
negative, the return value implies that 'istr2' is greater
than 'istr1'.
DESCRIPTION
This routine compares two input strings to determine
if 'istr2' is the same string as the beginning of 'istr1'.
In kstring_subcmp() the number of characters compared is
an implied value which is the length of the second input
string 'istr2'. The input strings are compared, character
by character, until either the end of one of the input
strings is encountered or 'istr1' and 'istr2' no longer
match.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/strings.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.