Hello, Simon. > int state; > state = PP(pp, stat); > if (LP(pp, stat) == LSSLEEP) > state = SZOMB + 1; > process_states[state]++; > what do you think? Of course. This is more clean. I just don't know your preferences yet. -- W/ best regards, Dmitry