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

Pages: 1-

Fucking C

Name: Anonymous 2007-11-01 2:49

i made this thread to vent about C and it's terrible string management and how it's not my fault i need this done by noon tomorrow and i've had it for a month

Name: Anonymous 2007-11-01 3:06

char faggotWhine;
faggotWhine = >>1;

Name: Anonymous 2007-11-01 3:20

also how i suck so much my pthreads wont run simultaneously

faggotWhine[1] = >>3

Name: Anonymous 2007-11-01 11:53

C string management is godly, take your fagness elsewhere.

Name: Anonymous 2007-11-01 11:58

>>4
Godly, as in you need to have omniscient superpowers to be able to use it and never make a mistake.

Name: Anonymous 2007-11-01 12:07

>>5
We are EXPERT PROGRAMMERS after all.

Name: Anonymous 2007-11-01 12:51

>>5
It is the perfect place to learn about pointers.

Name: Anonymous 2007-11-01 14:22

>>7
C pointers, maybe.

Name: Anonymous 2007-11-01 20:09

>>2
Forgot to allocate space, dumbass. Shit won't even compile.

Name: Anonymous 2007-11-01 21:00

>>5
Like it has been said... we are EXPERT PROGRAMMERS here. If you can't handle that shit, GTFO.

Name: Anonymous 2007-11-01 21:19

char *threadsafe() {
    static char *value = 0;
    if(value == 0) value = malloc(sizeof(char) * 512);
    strcat(value, "hay guys, am i doin it rite ");
    return value;
}

Name: Anonymous 2007-11-01 22:52

>>5
mistakes are for java kiddies

Name: Anonymous 2007-11-02 2:10

>>11
No, you're not doing it right, dumbass.

static variables are NOT thread safe, value is not freed and strcat will not overwrite the previous contents of value. Instead, it will keep writing until it gets to the end and writes past your 512 bytes on the 19th time it is called.

Name: Anonymous 2007-11-02 4:17

>>13
oh for fucks sake...

Name: Anonymous 2007-11-02 7:18

Name: Anonymous 2007-11-03 0:09

>>3
fail

>>9
FAIL


/* horrible */
It won't compile cuz he's bit shifting nothing
/* end of horrible */

Name: Anonymous 2007-11-03 3:53

>>9

">>1" is a char, whose size is allocated on the stack.  Durf durf.

Name: Anonymous 2007-11-03 8:21

>>17
Variables are not "allocated" on the stack. Allocating and deallocating usually involve more than simply incrementing and decrementing a register.

Name: Anonymous 2007-11-03 21:11

>>18
Finally a post that isn't an epic failure. Thank you /prog

Name: Anonymous 2007-11-03 21:17

>>18
/prog
Finally, a post that is total failure. Fuck you >>19

Name: Anonymous 2007-11-03 21:52

>>18
Allocation means reserving an area for a certain use.  The fact that it can be accomplished by simply bumping a pointer is irrelevant.

Name: Anonymous 2007-11-03 22:13

>>21
You know not the difference between a stack and a heap just as the same as you know not the difference between your head and ass.

Name: Anonymous 2007-11-03 23:31

A heap is just an untidy stack.

Name: Anonymous 2007-11-04 1:48

>>22
I think IHBT, but what the fuck?  Competition for the most FAIL post in this thread?

Name: Anonymous 2007-11-04 13:36

What of newlib and glib and libc ?

Name: Anonymous 2007-11-04 14:27

My other stack is a stdck.

Name: Anonymous 2009-02-25 7:31

A beginner really even   if you have   a plan on   how long this   is going to   UNDEF US said   the procedural programmers   in the codebase   of the Shiichan   he knew there   were procedural programmers   in the codebase   of the Shiichan   he knew there   were procedural programmers   I will divide   at him said   the assembly expert   and he fired   the processor flags   The Sussman lambdaed   at him and   as you talk   you build up   an image of   what that person   is like thus   making him no.

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2010-12-26 5:41

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