Email or username:

Password:

Forgot your password?
10 comments
prom™️

@iximeow arbitrary oldksl imo. other platforms used length-prefixed strings.

iximeow

@promovicz length-prefixed strings have nothing to do with this

prom™️

@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.

iximeow

@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`)

prom™️

@iximeow i meant a different aspect: on a platform with length prefixes, we would be unlikely to ask this question. but whitequark will know what she's playing at.

Go Up