The SEDRIS Data Representation Model
APPENDIX D - Functions
SE TokenSetDifference
extern SE_DRM_Status_Code
SE_TokenSetDifference
(
SE_DRM_Type drm_type, (notes)
constSE_Token_Set *set_a_ptr, (notes)
constSE_Token_Set *set_b_ptr, (notes)
SE_Token_Set *set_c_ptr (notes)
);

Definition

Removes token set B from token set A (set difference operation), places the result in token set C. Assumes that token sets A and B have the same underlying type.


Returns

SE_DRM_STAT_CODE_SUCCESS and the C token set is set appropriately, if valid parameters were passed in.
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER and no changes are made, if set_a_ptr or set_c_ptr is NULL.


Parameters Notes


drm_type

 the underlying type of token sets A, B, C. A and
              B must have the same underlying type.

set_a_ptr

 pointer to a Token Set, the set from which tokens are being removed

set_b_ptr

 pointer to a Token Set, the set of tokens to remove

set_c_ptr

 pointer to a Token Set, the set difference between A and B.


Prev: SE_TokenSetDefinition. Next: SE_TokenSetEmpty. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™