h45696
s 00043/00000/00000
d D 1.1 83/01/20 11:11:44 tes 1 0
c date and time created 83/01/20 11:11:44 by tes
e
u
tes
mjb
U
t
T
I 1
integer function isatgl (ichar, togles)
########################################################################
#                                                                      #
#          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: Determine if a character is an allowed toggle character#
#                                                                      #
#     Input Parameters:                                                #
#            ichar - byte to be checked for a toggle character         #
#            togles - null terminated string of toggle characters      #
#                                                                      #
#     Output Parameters:                                               #
#            None                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            None                                                      #
#                                                                      #
########################################################################
SHORTINT ichar, togles(1)
SHORTINT kchar, upcase
integer i

isatgl = 0   # initially it is not a toggle character
kchar = upcase (ichar)
i = 1
while (togles(i) != NUL) {
   if (kchar == togles(i)) {

      # found the toggle character
      isatgl = 1
      break
      }
   i = i + 1
   }

return
end
E 1
