bpmalloc/alloc_simple_wave_int.c

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

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