codice:
#include <stdio.h>

int main(){ 
  int first, second;
  char * s = "1,2";
  sscanf(s, "%d,%d", &first, &second);
  printf("\n%d\n%d\n", first,second);
  return 0;
}