NCEPLIBS-bufr  12.1.0
arallocc.c File Reference

Allocate or deallocate C language arrays. More...

#include "bufrlib.h"
#include "cread.h"
#include "mstabs.h"

Go to the source code of this file.

Macros

#define IN_ARALLOCC
 Macro to control whether certain variables are explicitly declared or referenced as extern. More...
 

Functions

void arallocc (void)
 Dynamically allocate C language arrays. More...
 
void ardllocc (void)
 Free all memory that was dynamically allocated during a previous call to subroutine arallocc(). More...
 

Detailed Description

Allocate or deallocate C language arrays.

Author
J. Ator
Date
2014-12-04

Definition in file arallocc.c.

Macro Definition Documentation

◆ IN_ARALLOCC

#define IN_ARALLOCC

Macro to control whether certain variables are explicitly declared or referenced as extern.

Definition at line 9 of file arallocc.c.

Function Documentation

◆ arallocc()

void arallocc ( void  )

Dynamically allocate C language arrays.

This subroutine is called internally during the first call to subroutine openbf() from an application program, in order to dynamically allocate internal C language arrays based on parameter values set during one or more previous calls to function isetprm().

All memory allocated within this subroutine can be freed via a subsequent call to subroutine exitbufr().

Author
J. Ator
Date
2014-12-04

Definition at line 29 of file arallocc.c.

References bort_f(), cbbw_c, cbelem_c, cbmnem_c, cbscl_c, cbsref_c, cbunit_c, cdmnem_c, cdseq_c, iafpk, ibfxyn_c, idefxy_c, idfxyn_c, igetprm_f(), lstpos, ndelem_c, and pb.

◆ ardllocc()

void ardllocc ( void  )

Free all memory that was dynamically allocated during a previous call to subroutine arallocc().

Author
J. Ator
Date
2014-12-04

Definition at line 90 of file arallocc.c.

References cbbw_c, cbelem_c, cbmnem_c, cbscl_c, cbsref_c, cbunit_c, cdmnem_c, cdseq_c, iafpk, ibfxyn_c, idefxy_c, idfxyn_c, lstpos, ndelem_c, and pb.