title: long integer in C
body: <p>How can I read a long integer with 12 or 13 digits (like a ISBN number of a book) in C? I want to read the number from a text file with information of books(ISBN/name/writer).</p>
  <p>The content of the text file is like this:</p>
  <blockquote>
  <p>0393312836</p>
  </blockquote>
  <blockquote>
  <p>A Clockwork Orange</p>
  </blockquote>
  <blockquote>
  <p>Anthony Burgess</p>
  </blockquote>
  <blockquote>
  <p>0199536759</p>
  </blockquote>
  <blockquote>
  <p>Middlemarch</p>
  </blockquote>
  <blockquote>
  <p>Bret Easton Ellis</p>
  </blockquote>
  <blockquote>
  <p>...</p>
  </blockquote>
  <blockquote>
  <p>...</p>
  </blockquote>
  <blockquote>
  <p>...</p>
  </blockquote>
  <p>and I am using this code:</p>
  <pre><code>int main(void){
  
      FILE *f;
      char name[MAX], writer[MAX], line[MAX];
      long isbn;
  
      f=fopen(&quot;path.txt&quot;,&quot;r&quot;);
      if(f == NULL){
          return 0;
          }
  
      while (fgets(line, 1024, f) != NULL){
  
          sscanf(line,&quot;%ld&quot;, &amp;isbn);
          printf(&quot;ISBN: %ld\n&quot;,isbn);
  
          fgets(nome, 1024, f);
          printf(&quot;NAME: %s&quot;,name);
  
          fgets(line, 1024, f);
          printf(&quot;WRITER: %s&quot;,writer);
  
  
          }
      fclose(f);
  
      return 0;
  
  }
  </code></pre>
  <p>he is able to read the names of the books and the writers, but he only reads the numbers if they have 9 digits or less. what do I have to do to make this work?</p>