fstd
Re:How Stack Overflow plans to survive the next DNS attack
on Tuesday January 10, 2017 @08:35AM (#13364621)
Can't believe they're running on Windows. Yikes.
Re:Select(2) is fundamentally broken
on Friday January 06, 2017 @06:49AM (#13335602)
Before each call to select, you'll have to FD_ZERO the fd set(s), then individually FD_SET each fd you're interested in.
If that's a large number of fds, then that's quite some overhead.
Re:What Every C Programmer Should Know About Undefined Behavior (2011)
on Thursday January 05, 2017 @09:02AM (#13327122)
if P does not point to valid memory, then dereferencing it is UB. Therefore, the compiler is at liberty to do whatever it wants (whether or not that is a good idea is irrelevant for the purposes of this consideration).
If the compiler knows that this is undefined, then you have already broken your end of the deal and therefore the compiler is free to break their end of the deal.
Therefore, eliminating the line is completely okay and the only think broken there is the code.