Split data from ethernet [C] : PLS I need split data from ethernet. Data is in this format:

    ZMXXX,angle*CHCK

where angle is number. For example: `ZMXXX,900*5A`

And I need separated ZMXXX,900 and 5A.
I write this function. 

    void split_data(char analyze[])
    {    
    	char *words[5]; uint8_t i=0;
    	words[i] = strtok(analyze,"*");
    
    	while(words[i]!=NULL)
    	{
    		words[++i] = strtok(NULL,"*");
    	}
    }

And result is here: [PICTURE][1]

And now, How I can get this data from variable:

    words[0]
    words[1]


  [1]: http://s32.postimg.org/jz4kilf3p/variable.png