4 ms·
Also most of the time people have serious performance regressions with strncpy() as the function overwrites with 0 all the test of the buffer. char buffer
by schlupa 6y ago
Also most of the time people have serious performance regressions with strncpy() as the function overwrites with 0 all the test of the buffer.
char buffer[2000];
strcpy(buffer, "hello", sizeof buffer);
writes "hello" and 1995 0 to the buffer.