Description
Compare two strings held in RAMTo compare two strings, take the comparision you wish to perform
e.g. str1 < str2and rearange it thusstrcmp(str1, str2) < 0For any condition COND simply rearange it from
str1 CONT str2tostrcmp(str1, str2) COND 0Definition
char strcmp(char *str1, char *str2)Library
LIB/str_lib.basUsage
On entry:str1 is a pointer to a RAM buffer holding the first string to be comparedOn exit:
str2 is a pointer to a RAM buffer holding the second string to be comparedThe return value is< 0 if str1 < str2 == 0 if str1 == str2 > 0 if str1 > str2