bpmalloc/alloc_simple_wave_double.c

Go to the documentation of this file.
00001 
00006 #include <bpm/bpm_messages.h>
00007 #include <bpm/bpm_alloc.h>
00008 
00009 double* alloc_simple_wave_double( int ns ) {
00010   
00011   int i;
00012   static double *w;
00013   //  double *w;
00014 
00015   w = (double*) calloc( ns, sizeof(double) );
00016   if ( ! w ) {
00017     bpm_error( "Unable to allocate memory in alloc_simple_wave_double(...)",
00018                __FILE__, __LINE__ );
00019     return NULL;
00020   }
00021 
00022   return w;
00023 }
00024 
00025 // ------------------------------------------------------
00026 
00027 void free_simple_wave_double( double* w ) {
00028 
00029   if ( w ) free( w );
00030   return;
00031 }

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1