Linking Linked Lists in c
<p>I have 3 structures:</p>

<pre><code>struct Product{
    int IdOfProduct;
    char *NameOfProduct;
    char *CategoryOfProduct;
    int PriceOfProduct;
    Struct Product *NextPtr;
};

struct Customer{
    int IdOfCustomer;
    char *NameOfCustomer;
    char *SurnameOfCustomer;
    struct Baskets *ListOfBasket;
    struct Customer *NextPtr;
}

*Header=NULL;

struct Basket{
    int IdOfBasket;
    struct Product *ProductList;
    int AmountOfTotal;
    struct Basket *NextPtr;
};
</code></pre>

<p>I took informations about customer from the user. I have customer's id name and surname. Now, the user can select one of the customers: The user enter the id of a customer that I listed by display function.So that, new basket will be added to that specific customer. How can i write this function ?</p>