Re: [PATCHv2 27/56] string-list: Add API to remove an item from an unsorted list
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Aug 12, 2011, 09:27 UTC
- Message-ID
- <CALxABCZj385GOZK=8+tsc=hDbRi-R0ULO4E8q7-ntXg__wJMtQ@mail.gmail.com>
- In-Reply-To
- <4E44CF9D.8030501@viscovery.net>
On Fri, Aug 12, 2011 at 09:00, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 6 quoted lines
> BTW, the code does this: > >> + list->items[i] = list->items[list->nr-1]; > > i.e., it assigns an entire struct. Is this perhaps problematic with older > C compilers? (I don't know, I'm more used to C++, where this is well-defined.)
Unlikely. As long as I can remember it always was a memcpy-like operation.