title: How to convert individual char from a table of char into an int
body: <p>Hello I don't know how to proceed :(</p>
  
  <p>Anybody can tell me how to convert a char to int from a table of char separate by commas ?</p>
  
  <pre><code>char mesg[] = "3,1,0,500';
  </code></pre>
  
  <p>I have an array of char separate by commas, and i want obtain each integer separately, so i want display each integer individualy</p>
  
  <pre><code>...
  if(mesg[i]==data_separator)
      {
         digit = atoi(buffer[i]);
         printf(" number %d : %d",i,number );
         ...
      }
  </code></pre>
  
  <p>Terminal :</p>
  
  <pre><code>number 1 : 3
  number 2 : 1
  number 3 : 0
  number 4 : 500
  </code></pre>
  
  <p>Thank you so much for your responses !</p>