using memset

Actually, I started coding in C in the late 1970's prior to any of the ANSI standards so I got into the habit of assuming that all data contained garbage values. While redundant in most cases, I think not assuming the compiler performs certain initializations has saved me a lot of grief over the years.

My first experience programming in C was using a compiler that initialized everything to 3087, unless you explicitly defined another value. Made bizarre things happen. The company that provided that compiler is no longer in business.