NCEPLIBS-w3emc 2.12.0
|
This Function copies a bit string from a Character*1 variable to an integer variable. More...
Go to the source code of this file.
Functions/Subroutines | |
integer function | mova2i (a) |
This Function copies a bit string from a Character*1 variable to an integer variable. | |
This Function copies a bit string from a Character*1 variable to an integer variable.
Definition in file mova2i.f.
integer function mova2i | ( | character(len=1) | a | ) |
This Function copies a bit string from a Character*1 variable to an integer variable.
It is intended to replace the Fortran Intrinsic Function ICHAR, which only supports 0 <= ICHAR(a) <= 127 on the IBM SP. If "a" is greater than 127 in the collating sequence, ICHAR(a) does not return the expected bit value when the -qhot ( and therefore -qsmp) option is used when compiling. This function can be used for all values 0 <= ICHAR(a) <= 255 and will work with or without the -qhot compiler option.
Program history log:
[in] | a | Character*1 variable that holds the bitstring to extract. |