awips2/ncep/gov.noaa.nws.ncep.viz.tools/AODTLIB/odthistorybullfmt.c
root 377dcd10b9 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 9f19e3f712 [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

27 lines
850 B
C

/* include file containing all AODT library global variables */
#include "../inc/odtlib.h"
/* include file containing all AODT library variable definitions */
#include "../inc/odtlibdefs-x.h"
/* AODT library function */
extern int aodtv64_textscreenoutput(char *);
int aodtv64_historybullfmt(struct odtdata *historyrec,char *listing)
/* Subroutine to load AODT history file record, listed in bulletin output format,
into a character string for output within API.
Inputs : pointer to history structure entry
Outputs: intensity estimage in bulletin format (character string)
Return : 0 : o.k.
*/
{
char *retstrng;
retstrng=(char *)calloc((size_t)2000,sizeof(char));
odtcurrent_v64=historyrec;
aodtv64_textscreenoutput(retstrng);
strcpy(listing,retstrng);
listing[strlen(retstrng)]='\0';
free(retstrng);
return 0;
}