next up previous 237
Next: Resetting Character Components
Up: ACCESSING CHARACTER COMPONENTS
Previous: Writing Character Values


Character Component Length

The length of an NDF character component (i.e. the number of characters it contains) is determined by the last assignment made to it, e.g. by NDF_CPUT, and may be obtained using the routine NDF_CLEN. For instance:

      INTEGER LENGTH

      ...

      CALL NDF_CLEN( INDF, 'Units', LENGTH, STATUS )

will return the number of characters in the units component via the LENGTH argument. If the specified component is undefined, then a value of zero will be returned.


next up previous 237
Next: Resetting Character Components
Up: ACCESSING CHARACTER COMPONENTS
Previous: Writing Character Values

NDF [1ex
Starlink User Note 33
R.F. Warren-Smith & D.S. Berry
16th July 2012
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council