4 ms·
the strxxx_s family blow up your program if they encounter something bad. What most people want is some simple functions that that can tell you if something wo
by noselasd 12y ago
the strxxx_s family blow up your program if they encounter something bad.
What most people want is some simple functions that that can tell you if something would have gone bad. (e.g. truncate the copied string and tell you if it was truncated)
- bitwize 12y agoGood. Attempting to copy or concatenate a too long string is indicative of a logic bug. If it really bothers you, use _set_invalid_parameter_handler to change the behavior to something you can recover from.