JPDev@programming.dev to Programmer Humor@programming.dev · 1 年前Exam Answerprogramming.devimagemessage-square128fedilinkarrow-up1799arrow-down111
arrow-up1788arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 1 年前message-square128fedilink
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up36arrow-down1·edit-21 年前Good thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
minus-squareSquishyPandaDev@yiffit.netlinkfedilinkarrow-up4·1 年前In most languages, length method doesn’t count the null terminator. Might result in some fun memory errors
Good thing this only uses ASCii characters, else you get into some fun discussions about UTF encoding
But does it count the null byte or not?
In most languages, length method doesn’t count the null terminator. Might result in some fun memory errors