Implemented style changes consistent w/test4

* Changed printing the buffers to use one printf statement
  rather than a while loop.

* Eliminated magic numbers with a define statement

* Fixed potential bug in memset lines. Made sure memset explicitly
  cleared the full array, and changed the 1st argument to clear
  up some ambiguity

Untested