* hb_list_empty ********************************************************************** * Assuming all items are of type hb_buffer_t, close them all and * close the list. *********************************************************************/
| 4328 | * close the list. |
| 4329 | *********************************************************************/ |
| 4330 | void hb_list_empty( hb_list_t ** _l ) |
| 4331 | { |
| 4332 | hb_list_t * l = *_l; |
| 4333 | hb_buffer_t * b; |
| 4334 | |
| 4335 | while( ( b = hb_list_item( l, 0 ) ) ) |
| 4336 | { |
| 4337 | hb_list_rem( l, b ); |
| 4338 | hb_buffer_close( &b ); |
| 4339 | } |
| 4340 | |
| 4341 | hb_list_close( _l ); |
| 4342 | } |
| 4343 | |
| 4344 | /********************************************************************** |
| 4345 | * hb_list_close |
no test coverage detected