xp_comm_proj/dlgtools/read/ram.c
/*********************************************************************

  delete a current block and zero the memory

  no input error checking

*********************************************************************/
delete a current block and zero the memory
no input error checking
delete a current block and zero the memory no input error checking
void ram_free_block( Ram_Block_Data *this_block )
{
  memset( this_block->head, 0,
         sizeof( char )*this_block->size );
  this_block->tail = NULL;
  this_block->size = 0;
  this_block->used = 0;
  this_block->left = 0;
  this_block->next = NULL;
  free( this_block->head );
  this_block->head = NULL;
  free( this_block ); this_block = NULL;
  return;
}
void ram_free_block ( Ram_Block_Data * this_block ) { memset ( this_block -> head , 0 , sizeof ( char ) * this_block -> size ) ; this_block -> tail = NULL ; this_block -> size = 0 ; this_block -> used = 0 ; this_block -> left = 0 ; this_block -> next = NULL ; free ( this_block -> head ) ; this_block -> head = NULL ; free ( this_block ) ; this_block = NULL ; return ; }
delete a current block and zero the memory
no input error checking
delete a current block and zero the memory no input error checking
/* zero the memory in the block*/ /* free the memmory in the block */ /* free the memory for the block structure */