From: Alex Riesen Date: Fri, 12 Aug 2011 09:27:40 GMT Subject: Re: [PATCHv2 27/56] string-list: Add API to remove an item from an unsorted list Message-ID: In-Reply-To: <4E44CF9D.8030501@viscovery.net> On Fri, Aug 12, 2011 at 09:00, Johannes Sixt wrote: > 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.