⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test12.c

📁 安装DDD之前
💻 C
字号:
/* $Header: /cvsroot/lesstif/lesstif/test/Xm/misc/test12.c,v 1.2 2001/06/15 09:30:51 amai Exp $ */#include <stdio.h>#include <stdlib.h>#include <Xm/Xm.h>#include <Xm/RepType.h>intmain(int argc, char **argv){    XmRepTypeList rep_types;    int i, j;#ifdef LESSTIF    XmRegisterConverters(); /* necessary with LessTif */#endif    rep_types = XmRepTypeGetRegistered();    fprintf(stderr, "done calling XmRepTypeGetRegistered()\n");    printf("Representation Type Converters installed (Motif %i.%i.%i)\n",        XmVERSION, XmREVISION, XmUPDATE_LEVEL);    printf("\n-----------------\n");    for(i = 0; rep_types[i].rep_type_name != NULL; i++)    {        printf("(%i) name: %s\n", i+1, rep_types[i].rep_type_name);        printf("values:\n");        for(j = 0; j < (int)rep_types[i].num_values; j++)        {            printf("\t%s", rep_types[i].value_names[j]);            if(!((j+1) % 2))                printf("\n");        }        printf("\n-----------------\n");    }    printf("Number of converters installed: %i\n", i);    XtFree((char*)rep_types);    exit(EXIT_SUCCESS);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -