I couldn't get your code to work, but don't bother with that, the one I am using is working fine. Thanks
lite-c is simple in some areas, but quite complicated in others. Maybe because I don't understand it. It's quite similar to python, which I had been using previously, but in areas that I thought should be quite simple, I am getting crashes and headaches. For example, with python, once I declare a global variable I can use it anywhere, and at anytime, without breaking a rule. With lite_c, these functions are killing me off. I can't use variables etc. as freely as I like without getting a crash.
I like lite-c, as I said before, but some areas are truely frustrating me.
Just thought I'd share my thoughts with someone. That sometimes help I understand.