NCEPLIBS-bufr  12.0.1
pkc.f File Reference

Encode a character string within an integer array. More...

Go to the source code of this file.

Functions/Subroutines

subroutine pkc (CHR, NCHR, IBAY, IBIT)
 Encode a character string within an integer array. More...
 

Detailed Description

Encode a character string within an integer array.

Author
J. Woollen
Date
1994-01-06

Definition in file pkc.f.

Function/Subroutine Documentation

◆ pkc()

subroutine pkc ( character*(*)  CHR,
  NCHR,
dimension(*)  IBAY,
  IBIT 
)

Encode a character string within an integer array.

This subroutine encodes a character string within a specified number of bytes of an integer array, starting at the bit immediately after a specified bit within the array.

Remarks
  • This subroutine is the logical inverse of subroutine upc().
  • On input, there is no requirement that IBIT must point to the first bit of a byte within IBAY. Correspondingly, on output there is no guarantee that the NCHR characters of CHR will be aligned on byte boundaries when encoded within IBAY.
Parameters
[in]CHR- character*(*): String to be encoded.
[in]NCHR- integer: Number of bytes of IBAY within which to encode CHR (i.e. the number of characters in CHR).
[out]IBAY- integer(*): Array containing encoded CHR.
[in,out]IBIT- integer: Bit pointer within IBAY
  • On input, IBIT points to the bit within IBAY after which to begin encoding CHR.
  • On output, IBIT points to the last bit of IBAY which contains the encoded CHR.
Author
J. Woollen
Date
1994-01-06

Definition at line 30 of file pkc.f.

References irev().

Referenced by cmsgini(), dxmini(), msgini(), msgwrt(), stndrd(), wrcmps(), wrdxtb(), writlc(), and wrtree().