| Slide 6.19: Line-by-line anatomy of Hello.c (cont.) Slide 7.1: Palm OS Resource Editor Home |   | 
Hello.c (Cont.)
 
  EvtGetEvent( &event, evtWaitForever );
 
evtWaitForever means wait indefinitely).
 evtWaitForever as the timeout in most instances.
When running on the device, this makes the CPU go into doze mode until the user provides input.
  SysHandleEvent( &event );
 
true if the system handled the event.
Applications should call this routine immediately after calling EvtGetEvent( ).
  } while ( event.eType != appStopEvent );