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


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

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





> while(s2[x]!=0 && s1[x]==s2[x])
>   x++;

darn, i am looking at your code an see a bug,
the original function called strlen because either x had to == strlen(s2)
or else the function must return NULL

so either way, I think that one would need to loop through s2 up to two
times...

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




Follow-Ups: References: