1. memmove procedure, in spite of what is stated in help, does not ensure that "bytes in p2 are copied to p1 before being overwritten". Simple example of memmove(@st+1,@st,5) where st='01234...', gives 011234 instead of 001234.
2. StrAppendPre does not work properly. In a sample code the procedure blundered for c.a. 9000 cycles doing nothing.
Code: Select all
data1:=' 6767678';
StrAppendPre(data1,'5');
Code: Select all
data1:='5 6767678';
aa:=StrRChr(data1,'6');
4. StrnCpy sometimes produces string without terminating byte 0. Example:
Code: Select all
data1:='12345';
data2:='67';
StrnCpy(data1,data2,2);
This is naturally just what I've spotted while comparing functioning of both libraries. There may be more...
P.S. There are also mistakes in help, like strpbrk being function (not procedure) and result of strcmp being integer (not byte).