#include <stdlib.h>
#define MAXITEMS 10
int main()
{
char ca[] = "1,23,";
int ia[MAXITEMS] = {0};
char *pc = ca;
int i=0;
while(strstr(pc,","))
{
ia[i] = atoi(pc);
i++;
pc = strstr(pc,",")+1;
}
ia[i] = atoi(pc);
return 0;
}