1 /* $Id: test9.c,v 1.1 2000/07/07 07:56:17 amai Exp $ */ 2 /* This is the 'short' version of the tests as in test[5-7]; 3 This is really just the test as in the OSF manual - I didn't attempt 4 to make any explicit calls to initialize something ... */ 5 6 #include <stdlib.h> 7 #include <stdio.h> 8 #include <Xm/BulletinB.h> 9 main()10int main() { 11 12 XmSecondaryResourceData * block_array ; 13 Cardinal num_blocks, i, j ; 14 if (num_blocks = XmGetSecondaryResourceData (xmBulletinBoardWidgetClass, 15 &block_array)) { 16 for (i = 0; i < num_blocks; i++) { 17 for (j = 0 ; j < block_array[i]->num_resources; j++) { 18 printf("%s\n", block_array[i]->resources[j].resource_name); 19 } 20 XtFree((char*)block_array[i]->resources); 21 XtFree((char*)block_array[i]); 22 } 23 XtFree((char*)block_array); 24 } 25 exit(0); 26 } 27