Next: bpipe_matrix_min, Previous: bpipe_matrix_delete, Up: Utility Functions
duplicate a BPipe
matrix structure
#include <bpipe/bpipe.h>BPMatrix *bpipe_matrix_dup(BPMatrix *src);
BPMatrix *src
- the matrix to duplicate
This routine duplicates a binary pipe matrix and its accompanying
data. It does not perform special processing for NULL
matrix
pointers.
On successful completion, a pointer to a new matrix structure is returned.
upon error bpipe_errno
is set and NULL
is returned.
Upon error bpipe_errno
is set to one of the following errors:
BPEBADARG
BPENOMEM