Mat_Copy

 

Create a new matrix composed of an array of pointers ("y" elements) to arrays of cells ("x" elements) of "dim" bytes and fill it with the content of an already existing matrix.

 

 

Syntax

 

void ** Mat_Copy(

          int x,

          int y,

          char dim

          void **source

) ;

 

 

Parameters

 

x

number of columns.

 

y

number of rows.

 

dim

size of each cell in the matrix (in bytes).

 

source

Pointer to the source matrix.

 

 

 

Return value

 

This function return a pointer to the newly created matrix.

 

 

Remarks

 

 

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

 

Example

 

 

 

See also