次のコードは、actions.c の中の activateCB() (描画ボタンの起動コールバック) の一部です。
DtActionInvocationID actionId; /* If a file was specified, build the file argument list */ printf("%s(%s)¥n",action,file); if (file != NULL && strlen(file) != 0) { ap = (DtActionArg*) XtCalloc(1, sizeof(DtActionArg)); ap[0].argClass = DtACTION_FILE; ap[0].u.file.name = file; nap = 1; } /* Invoke the specified action */ actionId = DtActionInvoke(shell,action,ap,nap,NULL,NULL,NULL,True,NULL,NULL);