If that is the exact code, I don't see how comparing against an uninitialized buffer can do any good...
As to why the program doesn't work - how should we know without code!
It's perfectly straight-forward, though
Code:do { play_a_game(); } while (!user_wants_to_quit());