Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   C/C++: how to clear a linked circular list (https://www.delphipraxis.net/198544-c-c-how-clear-linked-circular-list.html)

DP News-Robot 12. Nov 2018 14:40

C/C++: how to clear a linked circular list
 
<div class="field field-name-body field-type-text-with-summary field-label-hidden view-mode-rss"><div class="field-items"><div class="field-item even">In a linked circular list you need to add some checks to avoid memory corruption.

Full example (compiled OK with GCC 8.x)


<div class="geshifilter"><div class="cpp geshifilter-cpp" style="font-family:monospace;"><span style="color: #339900;">#include


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz