You need an infinite loop ... and a way to get out of it -- so it isn't really infinite :)

You can use any of the 3 loop constructs (I prefer the while)


while (1) {
/* infinite stuff */...