When something is nonzero in Boolean Logic, it means true. Of course, it can be anything but zero, including 1. This makes the while(1) statement induce an infinite loop, which could be quite useful.