h37886
s 00038/00000/00000
d D 1.1 83/02/02 19:29:17 tes 1 0
c date and time created 83/02/02 19:29:17 by tes
e
u
tes
mjb
U
t
T
I 1
integer function unpk2b (src)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: unpack two (2) bytes into an integer (16 bits)         #
#                                                                      #
#     Input Parameters:                                                #
#            src -  byte string from which to get the packed integer   #
#                                                                      #
#     Output Parameters:                                               #
#            None                                                      #
#                                                                      #
#     Returned value:                                                  #
#            unpk2b - integer value of unpacked byte string            #
#                                                                      #
#     Routines Called:                                                 #
#            None                                                      #
#                                                                      #
########################################################################
SHORTINT src(2)

SHORTINT tmpbyt(2)
integer ktemp

equivalence (ktemp, tmpbyt(1))

tmpbyt(1) = src(1)
tmpbyt(2) = src(2)

return (ktemp)
end
E 1
