Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C dynamic circular linked list

Name: Anonymous 2011-04-24 7:54

Hey programming,
teach me how to make a dynamic circular linked list in C!
I will make you guys proud one day.

Name: Anonymous 2011-04-24 8:17

what the fuck's dynamic?

Name: Anonymous 2011-04-24 8:29

C
proud

No.

Name: Anonymous 2011-04-24 9:06

>>3
Lisp
Jew

Name: Anonymous 2011-04-24 9:07

Name: Anonymous 2011-04-24 11:07

just use structs and pointers and malloc. easy as shit.

And use free as well, i hate it when faggots forget to release ther memory.

Name: Anonymous 2011-04-24 12:23

>>6

Please leave /prog/, your origin as an alien is painfully obvious.

Name: Anonymous 2011-04-24 12:45

>>6

Just to be precise, it's not always wrong to skip freeing allocated memory. It depends on how long your process runs. If it runs nonstop or for long periods of time, then memory leaks will leads to crashes, but what in cases when process runs for about 1-10s and is quite small? Even if there will be multiple leaks, it won't leads to crash or instability, after termination of proces, OS will clean it up anyway.

BTW it's not my thesis, I saw this in one of popular open source projects and I must agree.

Name: Anonymous 2011-04-24 12:54

>>8
The OS won't always clean it up you god damn fucking autistic jew.

Name: Anonymous 2011-04-24 12:59

>>9
It will, unless it's a toy OS written in a non-Turing-complete language like C or C++.

Name: Anonymous 2011-04-24 13:03

>>10
No, you're wrong you dumb autistic jew.. Here is an example from work. Say on a unix box I have a link to a file. Now I remove the link because I don't want another process to access it. Now the process terminates. The OS won't clean up the memory because there is still a reference to this file.

Name: Anonymous 2011-04-24 13:04

>>8

From the other side, execution of free() takes time, so in time critical processes, that meet conditions from >>6, you may want to consider to remove all free() from your code to gain performance.

Name: Anonymous 2011-04-24 13:20

>>11
0/10

Name: Anonymous 2011-04-24 14:42

'#1=(this is a circular lisp . #1#)

Name: Anonymous 2011-04-24 15:08

'(#0=(programmable . #0#) programming language)

Name: Anonymous 2011-04-24 17:19

>>10
YHBT

Name: Anonymous 2011-04-26 7:29

Name: Anonymous 2011-04-26 8:05

Name: Anonymous 2011-04-26 8:12

Name: Anonymous 2011-04-26 8:17

Name: Anonymous 2011-04-26 8:22

Name: Anonymous 2011-04-26 8:27

Name: Anonymous 2011-04-26 8:33

Name: Anonymous 2011-04-26 8:38

Name: Anonymous 2011-04-26 8:43

Name: Anonymous 2011-04-26 8:48

Name: Anonymous 2011-04-26 8:54

Name: Anonymous 2011-04-26 8:59

Name: Anonymous 2011-04-26 9:04

Name: Anonymous 2011-04-26 9:10

Name: Anonymous 2011-04-26 9:15

Name: Anonymous 2011-04-26 9:20

Name: Anonymous 2011-04-26 9:25

Name: Anonymous 2011-04-26 9:31

Name: Anonymous 2011-04-26 9:36

Name: Anonymous 2011-04-26 9:41

Name: Anonymous 2011-04-26 9:46

Name: Anonymous 2011-04-26 9:51

Name: Anonymous 2011-04-26 9:57

Name: Anonymous 2011-04-26 10:02


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List