• + 4 comments

    I think you're not addressing the case where:

    headA->data == headB->data

    I would make this change in the forth if statement:

    if(headA->data <= headB->data)