I have the following code,
char MyArray1[2];
char MyArray2[2];
char MyArray3[2];
void MyFunction(char SerialInString[]){ // receives message from serial in function
CharPos = 0;
while(MyString[CharPos] != 61){ memcpy(MyArray1,(char*)SerialInString[1],1); CharPos++; }
CharPos++;
while(MyString[CharPos] != 61){ strcpy(MyArray2,(char*)SerialInString[CharPos]); CharPos++; }
CharPos++;
while(MyString[CharPos] != 61){ strcpy(MyArray3,(char*)SerialInString[CharPos]); CharPos++; }
....
I have tried over 20 different ways, and always get some sort of issue, closest i got was to get initially some chars into MyArray1, but then it got deleted when MyArray2 got filled, and MyArray3 got the chars it was suppose to, but got joined onto the back of it the chars from MyArray2.
weird!
thanks!