How should I implement capacity for C Dymanic Linked List?
I know it is very easy to implement when you are using it as an ADT in OOP languages. But what should be done in case of structured language like C? Should I use a global variable? Should I keep an extra variable in every node? Or what? I have implemented my Dynamic Stack like this. As you can see there are no capacity checking. ...