📄 test9.c
字号:
/* $Id: test9.c,v 1.1 2000/07/07 07:56:17 amai Exp $ *//* This is the 'short' version of the tests as in test[5-7]; This is really just the test as in the OSF manual - I didn't attempt to make any explicit calls to initialize something ... */#include <stdlib.h>#include <stdio.h>#include <Xm/BulletinB.h>int main() { XmSecondaryResourceData * block_array ; Cardinal num_blocks, i, j ; if (num_blocks = XmGetSecondaryResourceData (xmBulletinBoardWidgetClass, &block_array)) { for (i = 0; i < num_blocks; i++) { for (j = 0 ; j < block_array[i]->num_resources; j++) { printf("%s\n", block_array[i]->resources[j].resource_name); } XtFree((char*)block_array[i]->resources); XtFree((char*)block_array[i]); } XtFree((char*)block_array); } exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -