Tag Info

New answers tagged

2

One thing that neither thread brings up is this: char whopping_great[8192] = "foo"; vs. char whopping_great[8192]; memcpy(whopping_great, "foo", sizeof("foo")); The former will do something like: memcpy(whopping_great, "foo", sizeof("foo")); memset(&whopping_great[sizeof("foo")], 0, sizeof(whopping_great)-sizeof("foo")); The latter only does the ...



Top 50 recent answers are included