The second parameter to memset()
is a single byte. memset()
does not fill the specified area of memory with int
s, but with single bytes.
If you want to initialize your board
array of int
s, you'll have to do it with the same kind of a loop that your test program uses to print its contents.