Re: [gmime-devel] Using gmime to Remove Attachments



Using a counting-down loop helps to keep things simple in such cases.


Bill Hager wrote, On 2010-07-30 07:59:
Thanks Jeff.

That clears it up. In thinking back to the cases where I previously used foreach type functions I think I typically built a new copy of the data structure I was incrementing over if I was planning on making changes. I'll probably write my own incrementor that simply calls the same index again when g_mime_multipart_remove is called.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]