title: Rough times trying to convert string to integers array
body: <p>Basically the program will ask for user credit card number, capture it inside a string, convert a string to an integer array (so I can validate credit card number, for later digit sums and multiplying).</p>
  
  <p>I need a variable with integers array and the code below stores ASCII values.</p>
  
  <p>Tried reading lots of posts, but didn't get it.</p>
  
  <p>I'd appreciate any help, so I could sleep again =)
  Cordially,</p>
  
  <pre><code>#include &lt;cs50.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main (void)
  {
  
  string cc_string;
  
  printf("Please enter a credit card number:\n");
  
  //Captures credit card string
  cc_string = GetString();
  
  // Array of credit card digits integers 
  int cc_digits[16];
  
      for (int i = 0; i&lt;= 15; i++)
          {   
              cc_digits[i] = (int) cc_string[i];
              //Just checking what value has been stored
              printf("position %d with %d \n", i, cc_digits[i]);
          }
  
  //to be continued
  
  }
  </code></pre>