Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment The cool thing... (Score 1) 486

The cool thing about this discussion is how it highlights the brilliance of our slashdotty community. How many people here think "memcpy(dest, src, src_size)" is safe? How many people here think "memcpy(dest, src, dest_size)" is safe? They're both unsafe. memcpy_s() isn't much of an improvement, but at least it will overrun neither the source nor the destination (unless used very stupidly indeed).

Nobody seems to have mentioned the other problem with memcpy(), which is that it only works on untyped data. This is always dangerous and rarely required.

Comment Re:Great (Score 2, Insightful) 658

Actually, spending ("throwing") money is stimulus when the economy has a demand shortage. If nobody is buying anything, then nobody will have a job. So the government steps up and buys stuff. It almost doesn't matter WHAT they spend it on, as long as it gets spent. It's impossible for spent money to not stimulate the economy, because the economy is the sum of spending.

Now, let's quibble about how much to spend and how best to spend it.

Slashdot Top Deals

Elliptic paraboloids for sale.

Working...