hoch@lemmy.world to Programmer Humor@lemmy.ml · 2 days agoMore code = more betterlemmy.mlimagemessage-square25linkfedilinkarrow-up1275arrow-down16
arrow-up1269arrow-down1imageMore code = more betterlemmy.mlhoch@lemmy.world to Programmer Humor@lemmy.ml · 2 days agomessage-square25linkfedilink
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up7·2 days agoNo i= 0; do{ i++; } while (10 != *(U32 *) i ); ? Gotta make it hard to read as well
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·1 day agoSegmentation fault, you forgot to take the reference and derefenced a null pointer.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up1·1 day 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)