title: How to get an input from user as an integers array in C?
body: <p>I'm new to C, currently studying it on CS50 course on edx.org (this task is NOT from CS50 course).</p>
  
  <p>I wrote the program which asks the user for a date of birth, and then calculates a current age depending on system date.</p>
  
  <p>Now I'm getting values from user this way (<code>GetInt()</code> and <code>GetString()</code> are functions from <code>cs50.h</code> header and library).</p>
  
  <pre><code>// Ask user for his name, and date of birth
  
  printf("Enter your name: ");
  char* name = GetString();
  
  printf("Enter your day of birth: ");
  int birth_day = GetInt();
  
  printf("Enter your month of birth: ");
  int birth_month = GetInt();
  
  printf("Enter your year of birth: ");
  int birth_year = GetInt();
  </code></pre>
  
  <p>But I don't want to ask user 3 times to get a date that he can enter as one line - 18.06.1985 for example. </p>
  
  <p>So the question is - how to get input from user in format DD.MM.YYYY, then store it in the array of integers, as [0, 1, 2], so I would be able to access these values separately later on?</p>