Archive for August 2004

Fun

A couple of easy sort algorithms for you. Look ma, no array subscripts! C is the shit, kiddies! #include <stdio.h>#include <stdlib.h>#include <string.h> #define ELEMENTS 10#define ARRAY_ELEMENT_COUNT(array) (sizeof(array)/sizeof(array[0])) //type-independent mallocvoid *MyMalloc(size_t size){ void *vp; if ((vp = malloc(size)) == NULL) { fputs(“Cannot allocate memory for malloc.n”,stderr); exit(EXIT_FAILURE); } return(vp);} //swap void pointersvoid SwapElements(void *pa,void *pb,size_t size){ [...]

GREATEST TROLL EVER

“Everybody who doesn’t buy, now, will be priced out forever. Anybody who does buy will be rewarded with a lifetime of riches, as their property will continue its 25% yearly price increase. Renters, and anybody born in a future generation, will not be able to afford a $5,000,000 starter home in 15 years. They will [...]