title: How to check if it the input EOF(ctrl + D) in C
body: <p>I have to check, will I input (ctrl +D) in this code</p>
  
  <pre><code>char octets_array[octets_number][128];
    for(line_counter =0; line_counter &lt; octets_number; line_counter++)
  
  
  {
  printf("Please enter octet: ");
  scanf("%s",octets_array[line_counter]);
  }
  </code></pre>