00282 {
00283 // first we need to update the available flag at the beginning of the buffer00284 // this needs to reflect if this event name by itself or the event name with one of the qualifiers worked00285 // if none of the combinations worked then we will show the event as not available00286 char *val_flag_ptr = strstr(event_output_buffer, "<-->");
00287 if (val_flag_ptr != NULL) {
00288 if ((val_flag) && (event_available == 0)) {
00289 // event is not available, update the place holder (replace the <--> with <NA>)00290 *(val_flag_ptr+1) = 'N';
00291 *(val_flag_ptr+2) = 'A';
00292 } else {
00293 event_available = 0; // reset this flag for next event00294 // event is available, just remove the place holder (replace the <--> with spaces)00295 *val_flag_ptr = ' ';
00296 *(val_flag_ptr+1) = ' ';
00297 *(val_flag_ptr+2) = ' ';
00298 *(val_flag_ptr+3) = ' ';
00299 }
00300 }
00301
00302 // now we can finally send this events output to the user00303 printf( "%s", event_output_buffer);
00304 // printf( "--------------------------------------------------------------------------------\n" );00305
00306 event_output_buffer[0] = '\0'; // start the next event with an empty buffer00307 return;
00308 }