EEPROM_strcmp

Description

Compare string held in data EEPROM with string held in RAM

To compare two strings, take the comparision you wish to perform

e.g.
		str1  <  str2
and rearange it thus
		EEPROM_strcmp(str1, str2)  <  0

For any condition COND simply rearange it from

		str1  CONT  str2
to
		EEPROM_strcmp(str1, str2)  COND  0

Definition

byte EEPROM_strcmp(uint addr, char *buff)

Library

LIB/eeprom_lib.bas

Usage

On entry:
addr is the byte address in the data EEPROM of the first string to be compared
buff is the address of the RAM buffer of the second string to be compared

see EEPROM description for a more detailed description

On exit:
< 0 if addr < buff
== 0 if addr == buff
> 0 if addr > buff