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

why C is shit

Name: Anonymous 2012-08-03 1:03

int a = 0xFFFFFFFF;
*( (char *) &a ) = 0x0F;


is the only way to do it in C. You can't simply go (char) a = 0x0F; because it's ``not a valid lvalue.'' Put C back where it belongs, in the garbage. It was a DSL for building Unix no wonder that's such shit too. We can do better now.

Name: Anonymous 2012-08-03 5:58

>>1
This is not the way to do it in C.

The way to do it in C is a = (a & ~0xFF) | 0x0F;.

The shit you wrote does something entirely different on a big-endian architecture.

Pls go back to haskal and don't try to use C ever again, thxbye.

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