@iximeow uh? i would have thought that this is about the null-termination trap - since strlen does not count the terminator. you'd have to add a 1 for allocation - for example. length-prefixed strings don't have that ambiguity.
Top-level
4 comments
@promovicz if that was so, it would print at least 2 (and possibly more depending on if a null happens to be immediately after `c`) |
@promovicz @iximeow iximeow is correct