I have the following:

```
char *strings = "1998,9,20,"

```

Here I want to store each number into an integer varaible and print as :

> 
> 1998
> 
> 
> 9
> 
> 
> 20
> 
> 
> 

I tried using `strtok` and then `atoi` but this did not help me as my variable is a character pointer and not an array.