1 /*$$$ SUBPROGRAM DOCUMENTATION BLOCK
3 C SUBPROGRAM: mov_a2i Moves a bit string from a char*1 to int
4 C PRGMMR: Gilbert ORG: W/NP11 DATE: 02-08-15
6 C ABSTRACT: This Function copies a bit string from a Character*1 variable
7 C to an integer variable. It is intended to replace the Fortran Intrinsic
8 C Function ICHAR, which only supports 0 <= ICHAR(a) <= 127 on the
9 C IBM SP. If "a" is greater than 127 in the collating sequence,
10 C ICHAR(a) does not return the expected bit value.
11 C This function can be used for all values 0 <= ICHAR(a) <= 255.
13 C PROGRAM HISTORY LOG:
16 C USAGE: I = mov_a2i(a)
20 C a - Character*1 variable that holds the bitstring to extract
24 C mov_a2i - Integer value of the bitstring in character a
37 #if defined _UNDERSCORE
38 int mov_a2i_(unsigned char *a
)
39 #elif defined _DOUBLEUNDERSCORE
40 int mov_a2i__(unsigned char *a
)
42 int mov_a2i(unsigned char *a
)