Synopsis

PDX_MSGT s041_GetCustomUnit(long option, MDA_PTR ctx_ptr, char **const name, double *const factor, int *const unit)

Purpose

Returns a custom conversion based unit from a representation context.

Description

Given a MDA_PTR to an external representation_context entity, return the name, factor, and units of a custom conversion based unit.

Input

option

Option (not used).

ctx_ptr

MDA_PTR to external representation_context entity.

Output

name

If not null, the name of the custom unit is placed here. This is dynamically allocated and must be freed.

factor

If not null, the unit factor is placed here.

unit

If not null, the unit the factor is based off of is placed here.

Return

      S041_INVALID_ENT
      S041_MALLOC_ERR
      S041_NOERR
      .fi