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 16:05

>>17
Post a complete program that crashes.
There's nothing in >>1's snippet that would cause a crash (unless you call this function millions of times and run out of memory due to the memory leak)

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