* hb_chapter_copy ********************************************************************** * *********************************************************************/
| 5627 | * |
| 5628 | *********************************************************************/ |
| 5629 | hb_chapter_t *hb_chapter_copy(const hb_chapter_t *src) |
| 5630 | { |
| 5631 | hb_chapter_t *chap = NULL; |
| 5632 | |
| 5633 | if ( src ) |
| 5634 | { |
| 5635 | chap = calloc( 1, sizeof(*chap) ); |
| 5636 | memcpy( chap, src, sizeof(*chap) ); |
| 5637 | if ( src->title ) |
| 5638 | { |
| 5639 | chap->title = strdup( src->title ); |
| 5640 | } |
| 5641 | } |
| 5642 | return chap; |
| 5643 | } |
| 5644 | |
| 5645 | /********************************************************************** |
| 5646 | * hb_chapter_list_copy |
no outgoing calls
no test coverage detected