by asgfoi · 10y ago · 0 comments
Seriously though, a C programmer should know the downsides of C strings, and act accordingly, i.e. use a library if necessary.
strlcpy() also sucks. The solutions I proposed solve both the overflow protection aspect that strlcpy aims to solve and solves the inefficiency problems of strcpy/strcat/memcpy.