Posts by Rafa • 11 points
2 posts
-
0
votes1
answer3252
viewsQ: C - Concatenate char (Not STRCAT)
I have 2 variables: char x[100] and char c; At first, I had to store c inside x. I did it this way: x[0] = c; Inside my program, after the previous run, the variable c value changes. Then I need to…
-
1
votes1
answer147
viewsQ: How to read the last 3 characters of a char with no set size
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)],…