date and time created 87/05/25 08:55:59 by minshall
[unix-history] / usr / src / usr.bin / tn3270 / api / test.c
CommitLineData
87f7c3b6
GM
1
2main()
3{
4 int gate;
5
6 if ((gate = api_name_resolve("SESSMGR")) == -1) {
7 printf("api_sup_errno = 0x%x.\n", api_sup_errno);
8 } else {
9 printf("SESSMGR is %d.\n", gate);
10 }
11 if ((gate = api_name_resolve("KEYBOARD")) == -1) {
12 printf("api_sup_errno = 0x%x.\n", api_sup_errno);
13 } else {
14 printf("KEYBOARD is %d.\n", gate);
15 }
16 if ((gate = api_name_resolve("COPY")) == -1) {
17 printf("api_sup_errno = 0x%x.\n", api_sup_errno);
18 } else {
19 printf("COPY is %d.\n", gate);
20 }
21 if ((gate = api_name_resolve("OIAM")) == -1) {
22 printf("api_sup_errno = 0x%x.\n", api_sup_errno);
23 } else {
24 printf("OIAM is %d.\n", gate);
25 }
26}