error in building link list in c
<p>I have written condition in while loop but error</p>

<blockquote>
  <p>curr undeclared(first use in this function)</p>
</blockquote>

<p>occurs though I have used the variable curr in insert function.</p>

<pre><code>insert(struct node **start)
         { struct node *temp;
           temp=(struct node *)malloc(sizeof(struct node);
           temp-&gt; data=75;
           temp-&gt;next= NULL;
           if(*start==NULL)
           {*start= temp;} 
           else
           {struct node *curr=*start;}
           while(curr-&gt;next!=NULL)
           {curr= curr-&gt;next;
           curr-&gt; next= temp;
                                  }

                       }
</code></pre>