All pastes #885487 Raw Edit

Miscellany

public c v1 · immutable
#885487 ·published 2008-01-30 22:51 UTC
rendered paste body
	unsigned int status;	unsigned int foundLen,foundOff;	const char *a =	"0123456789"					"1111111111"					"2222222222"					"333333this"					" is a test"					" of5555555"					"6666666666"					"7777777777"					"888888this"					" is a test"					" of";	const char *b =	"1234567890"					"aaaaaaaaaa"					"1234567890";	UpdateBuffer((const unsigned char*)a,strlen(a));	UpdateBuffer((const unsigned char*)b,strlen(b));	status = HardSearchString(20,10,&foundLen,&foundOff);//expect 10,0 - working	status = HardSearchString(21,2,&foundLen,&foundOff);//expect 2,1 - offset correct, returned length 9	status = HardSearchString(22,3,&foundLen,&foundOff);//expect 3,2 - offset correct, returned length 6	status = HardSearchString(27,3,&foundLen,&foundOff);//works