// Set status bars to a specified level static void set_bars(int level) { for (int i = 0; i < NUMBER_OF_STATUS_BARS; i++) { set_bar(i, i < level); } }
int main () { set_bar (1, 20); if (10 == (long) &size_of_bar && bar[1] == 20) printf ("OK\n"); return 0; }
void act() { static int i = 0; static int d = 1; clear_bar(i); if (i == 9) d = -1; if (i == 0) d = 1; i += d; set_bar(i); wait(500); }