hoch@lemmy.world to Programmer Humor@lemmy.ml · 14 hours agoMore code = more betterlemmy.mlimagemessage-square24linkfedilinkarrow-up1222arrow-down15
arrow-up1217arrow-down1imageMore code = more betterlemmy.mlhoch@lemmy.world to Programmer Humor@lemmy.ml · 14 hours agomessage-square24linkfedilink
minus-squareTolookahlinkfedilinkarrow-up6·13 hours agoNo i= 0; do{ i++; } while (10 != *(U32 *) i ); ? Gotta make it hard to read as well
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·8 hours agoSegmentation fault, you forgot to take the reference and derefenced a null pointer.
minus-squareTolookahlinkfedilinkarrow-up1·7 hours agoi 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)
No
i= 0;
do{ i++; } while (10 != *(U32 *) i );
?
Gotta make it hard to read as well
Segmentation fault, you forgot to take the reference and derefenced a null pointer.
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)