// file: csrn_file_1.cc // // this function prints the content of the buffer // // system include file // #include // local include file // #include "global_constants.h" #include "calculate_snr_constants.h" #include "calculate_snr.h" // function: print_buffer_cc // // arguments: // float* buffer_a: (input) an array buffer // int num_items_a: (input) number of items in the buffer // // return: an int to indicate status // // this function prints the content of a buffer // // int print_buffer_cc (float* buffer_a, int num_items_a) { for (int i = 0; i < num_items_a; i++) { fprintf(stdout, "snr for channel %d: %.6f dB\n", i, buffer_a[i]); } // exit gracefully // return TRUE; }