NCEPLIBS-bufr  11.7.0
 All Data Structures Files Functions Variables Pages
wrdesc.c
Go to the documentation of this file.
1 
6 #include "bufrlib.h"
7 
46 void wrdesc( f77int desc, f77int descary[], f77int *ndescary )
47 {
48  char errstr[129];
49 
50 /*
51 ** Is there room in descary for desc ?
52 */
53  if ( ( *ndescary + 1 ) < MAXNC ) {
54  descary[(*ndescary)++] = desc;
55  }
56  else {
57  sprintf( errstr, "BUFRLIB: WRDESC - EXPANDED SECTION 3 CONTAINS"
58  " MORE THAN %d DESCRIPTORS", MAXNC );
59  bort( errstr, ( f77int ) strlen( errstr ) );
60  }
61 
62  return;
63 }
Define signatures to enable a number of BUFRLIB subprograms to be called directly from C application ...
void wrdesc(f77int desc, f77int descary[], f77int *ndescary)
C C SUBPROGRAM: WRDESC C PRGMMR: ATOR ORG: NP12 DATE: 2004-08-18 C C ABSTRACT: GIVEN THE BIT-WISE REP...
Definition: wrdesc.c:46
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Definition: bort.f:22