|
|
|
|
|
by asgfoi
3788 days ago
|
|
That's nothing, you should see the sad sad state of strings in assembly... Oh you're supposed to manage them yourself? Huh, what a concept. 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.