Re: A89: installing C Event Hooks + misc other...


[Prev][Next][Index][Thread]

Re: A89: installing C Event Hooks + misc other...




> check for null or nonmatching char in the loop, and return
> NULL if you didn't stop at null or counter of length (x) if you did or
> something close to that instead.
> should be a bit faster too, since you don't have to count the length of
the
> string twice as you do now.
>
> while(s2[x]!=0 && s1[x]==s2[x])
>   x++;
>
> maybe.
>
> ///Olle
>

your're right, it is a strange function...
s1 is a pointer to a rather large array of fixed pointers s2 is a pointer to
an allocated string, so that bug should never happen...
Thanks for the new code though, it should be quite a bit faster and get rid
of that annoying warning!

thanks,

Greg
_________________________________
All parts should go together without forcing. You must remember that the
parts you are reassembling were disassembled by you. Therefore, if you can't
get them together again, there must be a reason. By all means, do not use a
hammer.
-- IBM maintenance manual, 1925



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




References: