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

is this bad?

Name: Anonymous 2013-08-27 12:46


struct something floattosomething(float f){
       struct something * ret = (struct something*)malloc(sizeof(struct something));
       ret->type = 3;
       ret->f = f;
       return *ret;
}

Name: Anonymous 2013-08-27 17:04

>>20
how about you fuck off to that board you love so much
dumb kike

Name: Anonymous 2013-08-27 17:08

>>21
and how about you fuck off to that board you love so much

Name: Anonymous 2013-08-27 17:24

Someone please escort >>21,22-san-tachi back to their private subreddit.

Name: Anonymous 2013-08-27 18:12

>>23
who are you callin/g/ a tachi, nigger?

Name: Anonymous 2013-08-27 18:16

>>24
貴方と>>21さん、もちろん。

Name: Anonymous 2013-08-27 19:20

Yes, that is very bad. Upon returning the intended value, you have left the memory allocated for ret to sit there until the program's termination. Don't use pointers unless they're necessary, else you will be leaking memory.

Name: Anonymous 2013-08-27 20:09

倍黒人達

Name: tyrone namibi 2013-08-27 20:20

>>27
who you calling a kurojin, bitchnigga

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