strnicmp_code

Description

Compare a string held in RAM with a string held in CODE memory ignoring differences in case (upto a maximum length)

Definition

char strnicmp_code(char *str1, char * const str2, int cnt)

Library

LIB/str_lib.bas

Usage

On entry:
str1 is a pointer to a RAM buffer holding the first string to be compared
str2 is a pointer to a CODE memory buffer holding the second string to be compared
cnt is the maximum number of characters to compare
On exit:
The return value is
 < 0 if str1 < str2
 == 0 if str1 == str2
 > 0 if str1 > str2