u08 button; while (button != 1) { // while the value of button is not equal to 1 button = checkButton(3); // call the function checkButton with // argument 3, and assign its value to // the variable button }This loop will execute until the function checkButton(3) returns a 1. This type of structure is common for polling an input.
while (1) { // loop forever ... ... }This never-ending loop is found in almost all of our AVR programs, because we have some functionality that we want to repeat continuously.