Open reply to Moshe Braner: exit 0; is illegal -- exit is a function just like any other. I am sure you are mistaken when you say you've seen it may times. In fact, I strongly suspect you are confusing it with return 0; which is legal C.