Answer the question
In order to leave comments, you need to log in
What are the pitfalls of memmove on gcc STM32?
Greetings!
You need to shift the array left and right (not cyclically, protruding elements are removed).
To do this, I made the following code:
int N = MIN( (len-index), (QUEUE_SIZE-index2) );
memmove(buf+index2, buf+index, N * sizeof(int) );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question