1
I have a C application where I need to read only the last 3 characters of a char.
Like the size of this char may vary, I did as follows:
memcpy(valor_final, string_total[strlen(string_total - 3)], 3);
where valor_final group the last 3 characters and string_total is my char whole.
But this is returning me the first three. Can anyone point out to me the mistake?