I ran across a problem where I need to extract each element of string to an integer array, the string only contains integer values without any space or delimiter.

Here is an example. 

```
char input[8]="02320000";

```

to

`int output[8]={0,2,3,2,0,0,0,0};`

I tried to use the `atoi()` and it is taking the entire string as digit.

The string characters will be 0-3.

thank you