The SEDRIS Data Representation Model
APPENDIX D - Functions
SE PropertyDataValueToIntegerPositive
extern SE_DRM_Status_Code
SE_PropertyDataValueToIntegerPositive
(
constSE_Property_Data_Value *value_ptr, (notes)
SRM_Integer_Positive *result_out_ptr (notes)
);

Definition

Converts an SE_Property_Data_Value to an SRM_Integer_Positive.

When converting:

boolean: FALSE is 0, TRUE is 1

string: the string is treated as 0

all others: normal mathematical rules apply


Returns

SE_DRM_STAT_CODE_SUCCESS and *result_out_ptr is set appropriately, if valid parameters were passed in.
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER and no changes are made, if any parameter is NULL.
SE_DRM_STAT_CODE_FAILURE and *result_out_ptr is set to zero (0), if *value_ptr is invalid or contains a value that's out of range for an SRM_Integer_Positive.


Parameters Notes


value_ptr

 pointer to the SE_Property_Data_Value to be converted

result_out_ptr

 pointer to the SRM_Integer_Positive where the result
    will be stored


Prev: SE_PropertyDataValueToInteger. Next: SE_PropertyDataValueToIntegerUnsigned. Up:Index.

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