You could copy from the NMEA string using the "indices" array to a temporary array, terminate that, and then use "atoi".
I'm not really sure how I could go about that. a new array is obviously necessary but would I just have 2 entries, latitude and longitude, and have them pull from indices? but how? sorry I'm still learning.