title: Request for member "duree" in something not a structure or union in scanf for integer
body: <p>I'm getting the following error:</p>
  
  <pre><code>Request for member "duree" in something not a structure or union
  </code></pre>
  
  <p>On <code>scanf("%d",&amp;var-&gt;duree)</code>.</p>
  
  <p><code>var</code> is a pointer to a structure.</p>
  
  <p>Whenever there's an integer to read, the same error appears.</p>
  
  <p>Can someone help me fix this?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include "structure_film.h"
  #include&lt;stdlib.h&gt;
  
  void ajouter_un_seul_film(struct film **var)
  { 
      int genre;
  
      if (*var==NULL)
      {
           printf("Espace insuffisant \n");
           return 0;
      }
      else
      {
           printf("Quel est le nom du film que vous voulez ajouter ? \n");
           scanf("%s",(*var)-&gt;nom);
  
           printf("\nCombien de minutes dure ce film ? \n");
           scanf("%d",&amp;var-&gt;duree);
  
           printf("\nVeuillez entrez le numero de reference de ce film : \n");
           scanf("%d",&amp;var-&gt;id);
  
           printf("\nQuel est l'annee de sortie? \n");
           scanf("%d",&amp;var-&gt;dateSortie);
      }
  }
  </code></pre>