title: Length of line in getline() function - c
body: <p>I have a question regarding the function getline():</p>
  
  <blockquote>
    <p>getline(&amp;line, &amp;len, file_in);</p>
  </blockquote>
  
  <p>where file_in is:</p>
  
  <blockquote>
    <p>FILE *file_in;</p>
    
    <p>char *line = NULL;</p>
    
    <p>size_t len; </p>
  </blockquote>
  
  <p>Every time when I read any line the allocated memory (<code>len</code> variable) is <code>120</code></p>
  
  <p>I suppose that it is constant, because it is a default line size in a file. </p>
  
  <p>1) But why <code>120</code>? </p>
  
  <p>2) Can this default size be changed anywhere?</p>
  
  <p>3) Is there any C function that counts only written chars?  </p>