4 ms·
> they still have to analyze their problem almost as rigorously as if they were using strcpy. Why rigorously? A blind dest[n-1] = '\0'; always worked for
by Jare 10y ago
> they still have to analyze their problem almost as rigorously as if they were using strcpy.
Why rigorously? A blind
dest[n-1] = '\0';
always worked for me, the only assumption is that n > 0. (in larger projects and/or teams you won't stop there of course, but that's a different topic)