NCEPLIBS-g2  3.4.8
mova2i.c File Reference

mova2i Moves a bit string from a char*1 to int More...

Go to the source code of this file.

Functions

int mova2i_ (unsigned char *a)
 This Function copies a bit string from a Character*1 variable to an integer variable. More...
 

Detailed Description

mova2i Moves a bit string from a char*1 to int

Author
Stephen Gilbert
Date
2002-08-15

Definition in file mova2i.c.

Function Documentation

◆ mova2i_()

int mova2i_ ( unsigned char *  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. This function can be used for all values 0 <= ICHAR(a) <= 255.

Parameters
[in]a- Character*1 variable that holds the bitstring to extract
Returns
- > mova2i - Integer value of the bitstring in character a
Author
Stephen Gilbert
Date
2002-08-15

Definition at line 20 of file mova2i.c.