Serial Malfunction??

Ok ive been writing a script to take the NMEA output from a GPS and turn it into real data but when i test it it prints something completely not even close to what it is supposed to print.

Here is my code:

char gpssentence[] = {"$GPGGA,025505.000,4752.5409,N,09608.5865,W,1,09,1.2,329.8,M,-26.6,M,,0000*69"};
int sentchar = 0;
char* gpsterms[] = {};
int termnum = 0;
int termspot = 0;

void setup(){
  Serial.begin(9600);
   for (int i=0; i <= 75; i++){
     delay(10);
      Serial.println(gpssentence[i]);
      (gpsterms[termnum])[termspot++] = gpssentence[i];
      Serial.println(int(termnum));
      if (gpssentence[i] == ',') {
        Serial.println("NEWLINE");
        termnum++;
        termspot = 0;
      }
      
   } 
   //Serial.println(termnum);
   //Serial.println(gpsterms[0][0]);
}

void loop(){
}

I couldnt Copy the output i got sadly but i took a screen shot of it: http://prntscr.com/1s5939

Forgot to add im using a Arduino Mega 2560

char* gpsterms[] = {};

?

(gpsterms[termnum])[termspot++] = gpssentence[i];?

Is this typing practice or codes and cyphers?.. That code must do something besides look confusing and take up space..

That code must do something besides look confusing and take up space

Dumping on memory you don't own...

Im working on a way to decode the Output from my GPS. Its a pain in the rear... cause its all SERIAL D:

Some test code to try. Copy your gps output test string, paste (ctrl-v) in the serial monitor text box, then send to the arduino. See if what is returned looks more like what you want.

//zoomkat 3-5-12 simple delimited ',' string parce 
//from serial port input (via serial monitor)
//and print result out serial port
// CR/LF could also be a delimiter

String readString;

void setup() {
  Serial.begin(9600);
  Serial.println("serial delimit test 1.0"); // so I can keep track of what is loaded
}

void loop() {

  //expect a string like wer,qwe rty,123 456,hyre kjhg,
  //or like hello world,who are you?,bye!,

  if (Serial.available())  {
    char c = Serial.read();  //gets one byte from serial buffer
    if (c == ',') {
      if (readString.length() >1) {
        Serial.println(readString); //prints string to serial port out
        //do stuff with the captured readString 
        readString=""; //clears variable for new input
      }
    }  
    else {     
      readString += c; //makes the string readString
    }
  }
}

pinkman:
Im working on a way to decode the Output from my GPS. Its a pain in the rear... cause its all SERIAL D:

It's easy, because it's ascii text received over a plain old serial interface - the Arduino has lots of examples showing how to receive text over a serial interface and the C runtime library has lots of functions for text parsing. But before you dive off into that, ask yourself whether it seems likely that you're the first person in the world to want to parse GPS output. Do you really need to reinvent this wheel?