Cover V04, I05
Article
Figure 1
Figure 2
Figure 3
Listing 1
Listing 2
Listing 3
Listing 4
Sidebar 1

sep95.tar


Figure 2: Using curses and HLLAPI

To use the curses terminal screen handling routines:

cc [compile flags]  file ... -lcurses  -lc

#include <curses.h>

To use the HLLAPI routines:

cc -I/usr/include/linkix -o example  example.c  -lcom

NOTE:  The -I parameter indicates the include path for the header file hapi_c.h.
1.  #include <hapi_c.h>
...
2.  int     HFunction;
3.  char  HDataString[DATA_SIZE];
4.  int     HLength;
5.  int     HRetCode;
...
6.  hllapi(&HFunction, DataString,  &HLength,  &HRetCode);