Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

util_strcasecmp() Function

The util_strcasecmp function performs a comparison of two alphanumeric strings and returns a -1, 0, or 1 to signal which string is larger or the strings are identical.

The comparison is not case sensitive.


int util_strcasecmp(const char *s1, const char *s2);

Return Values

1 if s1 is greater than s2.

0 if s1 is equal to s2.

-1 if s1 is less than s2.


char *s1 is the first string.

char *s2 is the second string.

See Also

util_strncasecmp() Function