@RichFelker We need to just accept it... the C hate is too strong T_T. (I absolutely hate that it's come to this)https://twitter.com/RichFelker/status/709915047842205700 …
-
-
Replying to @RichFelker
@cr1901 Sadly there's always the temptation to take shortcuts even for those of us who know better...1 reply 0 retweets 1 like -
Replying to @RichFelker
@RichFelker IIRC strncpy doesn't actually do what one would expect. But no doubt there's a Linux/Windows-specific variant?3 replies 0 retweets 0 likes -
Replying to @cr1901
@RichFelker Possibly snprintf is a good bet here if one cares about standards compliance?1 reply 0 retweets 0 likes -
Replying to @RichFelker
@cr1901 For just copying or piecewise concatenation, memcpy is usually the right tool (you already have to know sizes anyway, for safety).1 reply 0 retweets 0 likes
@cr1901 strnlen is a great tool for measuring sizes when you want to place a limit on the max size accepted anyway (avoids unbounded time).
6:57 PM - 15 Mar 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.