save serial data to variable?

ok so lets say I make a new array

char temp[]

then
memcpy(temp, indices[2], size?)
memcpy(temp, indices[4], size?)

then
lat = atoi(temp[0]);
long = atoi(temp[0]);

?