▲ 273 ▼ More code = more better (lemmy.world) submitted 11 months ago by hoch@lemmy.world to c/programmerhumor@lemmy.ml 25 comments fedilink hide all child comments
[–] Tolookah@discuss.tchncs.de 7 points 11 months ago (2 children) No i= 0; do{ i++; } while (10 != *(U32 *) i ); ? Gotta make it hard to read as well permalink fedilink source hideshow 2 child comments replies: [–] anton@lemmy.blahaj.zone 3 points 11 months ago (1 child) Segmentation fault, you forgot to take the reference and derefenced a null pointer. permalink fedilink source parent hideshow 1 child comment replies: [–] Tolookah@discuss.tchncs.de 1 point 11 months ago i is my address. The bigger problem is that I should have increased i by sizeof(U32) (This works on bare metal, mostly, not on an os) permalink fedilink source parent
[–] anton@lemmy.blahaj.zone 3 points 11 months ago (1 child) Segmentation fault, you forgot to take the reference and derefenced a null pointer. permalink fedilink source parent hideshow 1 child comment replies: [–] Tolookah@discuss.tchncs.de 1 point 11 months ago i is my address. The bigger problem is that I should have increased i by sizeof(U32) (This works on bare metal, mostly, not on an os) permalink fedilink source parent
[–] Tolookah@discuss.tchncs.de 1 point 11 months ago i is my address. The bigger problem is that I should have increased i by sizeof(U32) (This works on bare metal, mostly, not on an os) permalink fedilink source parent