Hi,
I'm trying to read this:
char *word3;
word3 = strtok(element, delimit);
if (word3 == ":HELLO") {
/* Execute the code */
}
But it doesn't read the if, I must make strstr, but it doesn't help me. It must read the exact word.
The debugger tells me the value of word3 is
+ word3 0x00359322 ":HELLO" char *
Thanks to anyone who can help me set this.
EDIT: I can manage to read some, with
if (string(word1) == "word") { ... }
BUT it doesn't work with the word ":HELLO" because they are 2 squares (bytes) after the ":HELLO" in the debugger, which are empty bytes, because I use strtok() to get ":HELLO" working fine when something is behind ":HELLO" otherwise adds to space or empty bytes after it.