I found a way to significantly reduce code size (almost 3 times) and to improve readability of that code with C++17 fold expressions. https://pastebin.com/5qdk042e
— Best IDE for c, c++, copy ?
Marat Gimadiev: Hi everyone, I implemented stack using linked list in C. For compiling I use gcc. On fedora my code works fine. if I run on windows with gdb everything works fine too. But without -g flag malloc function causes segmentation fault.
Part of the code is posted here https://pastebin.com/FP3BvLvn. Segmentation fault appears after I use push function second time.