test1.c

来自「安装DDD之前」· C语言 代码 · 共 35 行

C
35
字号
/* $Header: /cvsroot/lesstif/lesstif/test/Xm/baseclass/test1.c,v 1.3 2001/06/11 08:26:30 amai Exp $  * location detection of Motif routines  */#include <stdlib.h>#include <stdio.h>#include <Xm/BaseClassP.h>#include "../../common/Test.h"intmain(int argc, char **argv){  Widget toplevel;  XtAppContext app;  XtSetLanguageProc(NULL, NULL, NULL);  /* Motif will dump core if this is after the initialize,   * but if you put this first, you're ok */  /* MLM so will lesstif, now:) */  toplevel = XtVaAppInitialize(&app, "Label", NULL, 0, &argc, argv, NULL, NULL);  _XmInitializeExtensions();  printf("XmQmotif: %s\n", XrmQuarkToString(XmQmotif));  XtRealizeWidget(toplevel);    /* NO GEOMETRY */  LessTifTestMainLoop(  toplevel );  exit(0);}

⌨️ 快捷键说明

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