NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fi04.f File Reference

Find word size, endian, character set. More...

Go to the source code of this file.

Functions/Subroutines

subroutine w3fi04 (iendn, itypec, lw)
 Subroutine computes word size, the type of character set, ASCII or EBCDIC, and if the computer is big-endian, or little-endian.
 

Detailed Description

Find word size, endian, character set.

Author
Ralph Jones
Date
1994-10-07

Definition in file w3fi04.f.

Function/Subroutine Documentation

◆ w3fi04()

subroutine w3fi04 ( integer  iendn,
integer  itypec,
integer  lw 
)

Subroutine computes word size, the type of character set, ASCII or EBCDIC, and if the computer is big-endian, or little-endian.

Program history log:

  • Relph Jones 1994-10-07
  • Stephen Gilbert 1998-07-08 Removed the Fortran SAVE Statement. The SAVE statement is not needed for this outine, and may have been causing errors using the f90 compiler under the 2.0 Programming Environment.
  • Boi Vuong 2002-10-15 Replaced Function ICHAR with mova2i
Parameters
[out]IENDNInteger for big-endian or little-endian
  • =0 big-endian
  • =1 little-endian
  • =2 cannot compute
[out]ITYPECInteger for type of character set
  • =0 ASCII character set
  • =1 EBCDIC character set
  • =2 not ASCII or EBCDIC
[out]LWInteger for words size of computer in bytes
  • =4 for 32 bit computers
  • =8 for 64 bit computers
Author
Ralph Jones
Date
1994-10-07

Definition at line 29 of file w3fi04.f.