FTAM/9000 Programmer's Guide

Chapter 10 427
Example Programs
Common Code Example
/*
** Traverse the diagnostic list and print the further_details strings.
*/
while(diag != NULL) {
(void)printf(“FTAM failure: diagnostic number = %d\n”,
diag-error_id);
if(diag-further_details != NULL)
(void)printf(“FTAM failure: diagnostic = %s\n”,
diag-further_details);
diag = diag-next;
}
exit(-1);
}