/* ---------------------------------------------------------------------- // Header file for all DataPack programs. pack.h // Created by Alice Fischer on Mon Dec 22 2003. */ #include "tools.h" /* ---------------------------------- Instantiations for generic parts */ #define IN_FMT "%g" #define OUT_FMT "%.7g\n" typedef float BT ; #define LENGTH 20 /* -------------------------------------------- Generic type definition */ typedef struct { int n; /* Allocation length. */ int max; /* Data length. */ BT* store; /* Dynamic data array. */ } DataPack; /* -------------------------------------------------------- Prototypes */ void setup( DataPack* pData ); void printData( DataPack* pData, stream outstream ); void sortData( DataPack* pData );