title: How to extract all Numbers out of a String using sscanf only?
body: <p>How to extract all Numbers out of a String with following format using sscanf in C ONLY:</p>
  
  <p>" (3, 2, 4,5,    10  )"</p>
  
  <p>Whitespaces can be everywhere but not between Digits of course. 
  There can be 0 Whitespaces or more at every position. </p>
  
  <p>The String has to have the right format or its an error. 
  " (3,2, " is an error for example.
  Every Character that's not an whitespace or part of the format is an error</p>
  
  <p>Using only sscanf (its not optional)</p>
  
  <p>My Idea, of course, is to while loop with sscanf, but the formatting is my problem</p>
  
  <p>EDIT: The Amount of number inside the brackets can be different. So we can have 0 Numbers or n Numbers inside the brackets. with n being any number. (a,a+1,...,a+n).</p>
  
  <p>EDIT2: Of course its allowed to use everything included in stdio.h, but no extendet librarys</p>