3 ms·
No, you should NOT use strncpy instead. It can create broken strings that are not NULL terminated. I would suggest using strlcpy.
by yxhuvud 14y ago
No, you should NOT use strncpy instead. It can create broken strings that are not NULL terminated.
I would suggest using strlcpy.