Description
Compare string held in data EEPROM with string held in RAMTo compare two strings, take the comparision you wish to perform
e.g. str1 < str2and rearange it thusEEPROM_strcmp(str1, str2) < 0For any condition COND simply rearange it from
str1 CONT str2toEEPROM_strcmp(str1, str2) COND 0Definition
byte EEPROM_strcmp(uint addr, char *buff)Library
LIB/eeprom_lib.basUsage
On entry:addr is the byte address in the data EEPROM of the first string to be comparedOn exit:
buff is the address of the RAM buffer of the second string to be compared
see EEPROM description for a more detailed description
< 0 if addr < buff
== 0 if addr == buff
> 0 if addr > buff