I have a C application where I need to read only the last 3 characters of a char.
Since the size of this char
may vary, I did the following:
memcpy(valor_final, string_total[strlen(string_total - 3)], 3);
where valor_final
will group the last 3 characters and string_total
is my char
all.
But this is returning me to the top three. Can someone point me the error?