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

C

Name: Anonymous 2011-01-27 4:38

strlen(3) is FUCKING O(n)!

Name: Anonymous 2011-01-27 20:40

>>28
>>8 sucks
before the pointer


char *anus = malloc(256);
anus += sizeof(size_t);
#define len(x) ((size_t)(x)-(sizeof(size_t)))
len(anus) = 256;
myfaggotfunction(anus, len(anus));
free(anus-4);

vs

string anus = malloc(sizeof(string));
anus.length = 256;
anus.data = malloc(sizeof(anus.length));
myfaggotfunction((char *)anus, anus->length);
free(anus->data);
free(anus);


Yeah, it sucks, it consumes sizeof(*) more than yo'ure´s

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