Comments on Linked List code


OSNN Veteran Addict
18 Mar 2002
I've had to write some Linked List code recently and I've managed to get it to compile and the test code seems to work. I was just wondering if anyone has any comments about it or can point out some glaring issues with any of it.

I am quite new to malloc and friends so I want to make sure I've not screwed anything up there.

I've attached the code with a Makefile to this post.


  • List
    1.4 KB · Views: 72
It is very simplistic, which is a very good thing. Will look over it some more tomorrow morning (today) when I wake up :D
noob questions.

what does it mean when you use:

port2->index = "43";

what does the arrow mean? and why are you using 43 as a string? (inside quotes)
port2 is a pointer so I could use (*port2).index but because this is such a common need the -> method of accessing structure members through pointers is provided.

I am using strings because its all involved with SNMP and OIDs which are easier to work with using strings

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Latest member