Quote Originally Posted by christop View Post
unknown_072: Your code in #11 still uses "+" for string concatenation. That does not work as laserlight mentioned in post #2. That needs to be fixed.

Structure: There's no need to reinvent the wheel. Your "compare" function in #5 can be simplified to something like this:

Code:
int compare(const char *string1, const char *string2) {
    return strcmp(string1, string2) == 0;
}
(I also added "const" to the parameters which you forgot to do.)
I checked how to use strcat, but here also, I'm not sure how to read the PacketBuffer, I just want to verify if the 3 digits of the string that is received on the UDP packet are the same as tableID;
Code:
if (packetBuffer, strcat(str1, str2)
Structure:
I've rewinded my code back to basic, thought it was helpful to share a bit more code.