4 ms·
"aborting is correct: unexpected truncation is always a logic bug" How does a function knows what a programmer expects... A lot of use for those potentially tr
by brohee 12y ago
"aborting is correct: unexpected truncation is always a logic bug"
How does a function knows what a programmer expects... A lot of use for those potentially truncating functions are for display purpose, where truncating is expected and not a logic bug...
A library function potentially exiting is mostly useless.
- tankenmate 12y agoAnd as the GP said, for those cases that truncating is expected (or not a problem) then use strncpy_s.