Dall'help che ti avevo suggerito, i parametri sono
ptr
Pointer to the array of elements to be written.
size
Size in bytes of each element to be written.
count
Number of elements, each one with a size of size bytes.
E' necessario sapere di che tipo sono gli elementi della matrice.