Mat_VarGetStructsLinear man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

MAT_VARGETSTRUCTSLINE... BSD Library Functions Manual MAT_VARGETSTRUCTSLINE...

NAME
     Mat_VarGetStructsLinear — Linearly index a structure variable

SYNOPSIS
     #include <matio.h>

     matvar_t *
     Mat_VarGetStructsLinear(const matvar_t *matvar, int start, int stride,
	 int edge, int copy_fields);

DESCRIPTION
     The Mat_VarGetStructsLinear() function selects a subarray from a struc‐
     ture array matvar. Each of the elements in the subarray contains all of
     the fields of the structure. The indexing starts at the start element in
     the array (0 being the first element), and reads every stride values (1
     being every element, 2 every other element, etc.). The total number of
     elements in the subarray is specified as edge. The original array must
     have at least start+(stride-1)*edge+1 elements. The copy_fields option
     specifies whether the fields of the original structure are copied for the
     new subarray. If set to 0, the returned structure array's fields have the
     same pointer as the original array, and the data field of the subarray
     structure. The subarray is marked with the conserve memory flag indicat‐
     ing that the fields should not be free'd. They are free'd when the origi‐
     nal structure is free'd.

RETURN VALUES
     A subarray of the original structure array, or NULL if there is an error.

SEE ALSO
     Mat_VarGetStructs(3),

BSD				March 14, 2012				   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net