Livejournal
Log in
Post
Friends
My journal
kyledgoss
in case you haven't seen this before
Jan 19, 2006 23:38
void createVertices() {
int i;
vertices = (GLfloat**) malloc((m+1)*(n+1)*4*2*sizeof(GLfloat*));
for(i=0;i<(m+1)*(n+1)*4*2;i (
Read more...
)
Leave a comment
Comments 5
wrexen
January 20 2006, 06:24:03 UTC
Candidate theories:
* Draws a pentagram
* Sorts in O(log n) time
* Crosses streams, destroys universe
* Null pointer error
* Prints "Hello, world"
Reply
mge
January 20 2006, 11:54:19 UTC
Is this the one that does it correctly, or the one that creates the world on acid version?
Reply
kyledgoss
January 20 2006, 13:21:18 UTC
I dunno, I just stumbled across it while trying to revive my dying desktop.
Reply
mge
January 20 2006, 13:29:05 UTC
I'm gussing it's the working one. I think at one point you were not using any []'s
Reply
tekman
January 20 2006, 17:58:27 UTC
Malloc in a for loop? Yikes.
Reply
Leave a comment
Up
Comments 5
* Draws a pentagram
* Sorts in O(log n) time
* Crosses streams, destroys universe
* Null pointer error
* Prints "Hello, world"
Reply
Reply
Reply
Reply
Reply
Leave a comment