HP (Hewlett-Packard) B Network Router User Manual


 
printf(" **** Channel 1 **** **** Channel 2 ****\n");
printf(" Seg 1 Seg 2 Seg 1 Seg 2\n");
printf(" ---------- ---------- ---------- ----------\n");
Reading = Readings;
Reading2 = Readings + NReadings;
for (ReadCnt = 1; ReadCnt <= NReadings; ReadCnt++) {
printf("%2d%+10.4f%+10.4f %+10.4f%+10.4f\n",ReadCnt,
Scale
*
LOWORD(*Reading), Scale
*
LOWORD(*Reading2),
Scale
*
HIWORD(*Reading), Scale
*
HIWORD(*Reading2)
);
Reading++;
Reading2++;
}
printf("\n");
free(Readings);
return 0;
}
SEGTST16.CPP
and
SEGTST32.CPP
#include Files
The following files are used with programs SEGTST16.CPP and
SEGTST32.CPP:
INST.H
INST.CPP
E1429.H
E1429.CPP
INST.H
#ifndef INST_DEFD
#define INST_DEFD
#include <sicl.h>
#define BYTE char
#define WORD short int
#define LONG long
#define UBYTE unsigned char
#define UWORD unsigned short int
#define ULONG unsigned long
Continued on Next Page
Chapter 2 Usin
g
the Di
g
itizer 77