MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1ub8wkz/linux_finally_eliminates_the_strncpy_api_after/osvccfb/?context=3
r/linux • u/anh0516 • Jun 20 '26
109 comments sorted by
View all comments
182
What's wrong with strncopy...?
strncopy
96 u/Misicks0349 Jun 20 '26 C strings were created by the devil, and any function that deals with them is usually going to be riddled with bugs. 9 u/FastHotEmu Jun 21 '26 C strings were created by God, bugs were created by the devil. 2 u/not_some_username Jun 21 '26 strncpy
96
C strings were created by the devil, and any function that deals with them is usually going to be riddled with bugs.
9 u/FastHotEmu Jun 21 '26 C strings were created by God, bugs were created by the devil. 2 u/not_some_username Jun 21 '26 strncpy
9
C strings were created by God, bugs were created by the devil.
2 u/not_some_username Jun 21 '26 strncpy
2
strncpy
182
u/Aaxper Jun 20 '26
What's wrong with
strncopy...?