00001 00005 #include <stdio.h> 00006 #include <stdlib.h> 00007 00008 #include <bpm/bpm_messages.h> 00009 #include <bpm/bpm_process.h> 00010 00020 int copy_waveform( double *wf_dst, double *wf_src, int ns) { 00021 00022 int i; 00023 00024 if ( ! wf_src || ! wf_dst ) { 00025 bpm_error( "Invalid waveform pointers in copy_waveform(...)", 00026 __FILE__, __LINE__ ); 00027 return BPM_FAILURE; 00028 } 00029 00030 00031 for( i=0; i<ns; i++ ) { 00032 wf_dst[i] = wf_src[i]; 00033 } 00034 00035 return BPM_SUCCESS; 00036 } 00037 00038