#include #include #include #include EXEC SQL INCLUDE sqlca.h; typedef char asciz[20]; typedef char vc2_arr[11]; EXEC SQL BEGIN DECLARE SECTION; /* User-defined type for null-terminated strings */ EXEC SQL TYPE asciz IS STRING(20) REFERENCE; /* User-defined type for a VARCHAR array element. */ EXEC SQL TYPE vc2_arr IS VARCHAR2(11) REFERENCE; asciz username; asciz password; char user_pwd[80]; int i; int j; int k; short ind; /* Indicator */ char name[33]; /* Sequence name */ char lddate[32]; /* Load date */ int seqresp_id; /* Sequence of responses identifier */ int resp_nb; /* Response number */ char resp_type; /* Response type */ int resp_id; /* Response identifier */ int unit_in; /* Input units */ int unit_out; /* Output units */ char unitin[81]; /* Input units */ char unitout[81]; /* Output units */ char r_type; /* Response type */ char filter_type[3]; /* Filter type */ int nb_pole; /* Number of poles */ float corner_freq; /* Corner frequency */ float damping_value; /* Damping value */ char type; float r_value; /* Real value */ float i_value; /* Imaginary value */ char poly_type; /* Type of polynomial approximation */ float lower_bound; /* Lower bound */ float upper_bound; /* Upper bound */ float max_error; /* Maximum error */ int nb_coeff; /* Number of coefficients */ int pn_nb; /* Coefficient number */ float pn_value; /* Coefficient value */ int seqfil_id; /* Sequence of filters identifier */ int nb_filter; /* Number of filters */ float gain; /* Gain */ float frequency; /* Frequency */ int filter_nb; /* Filter number */ int filter_id; /* Filter identifier */ float in_sp_rate; /* Input sample rate */ float out_sp_rate; /* Output sample rate */ int offset; /* Decimation offset */ float delay; /* Estimated delay */ float correction; /* Correction applied */ char symmetry; /* Filter symmery */ EXEC SQL END DECLARE SECTION; long SQLCODE; void sql_error(); /* Handles unrecoverable errors */ /*****************/ /* Main function */ /*****************/ main (argc, argv) int argc; char* argv[]; { /* Test of parameters */ if (argc != 2) { printf ("\n\n filinfo \n\n"); exit (0); } strcpy (name, argv[1]); for (i=0;i