Struct as a function type
<p>I want to call a object from a struct made in a header in which i have a few data types , let me clear the things up.<code>ft_stock_par.h</code> is the name of the header.</p>

<pre><code>typedef struct s_stock_par
{
    int size_param;
    char *copy;
}   t_stock_par;
</code></pre>

<p>and then i have the main function from which i want to call the object <code>t_stock_par</code> , how can I do so? When I am trying to call from a function with the object like this <code>t_stock_par.size_param</code> i get an error <code>error: expected identifier or '('</code></p>