 |  |  | How to select its INTvalue |
How to select its INTvalue
If you have an INTEGERobject you sometimes want to select the
INTvalue of the object. Look at the following piece of code.
...
m_i_i(8L,a);
printf("%ld",s_i_i(a)+5L);
...
which will print
13 to the terminal.
The description of this selection routine now follows:
- Its NAME is
s_i_i(),
is an abbreviation of
select_integerobject_integervalue,
- and its SYNOPSIS is:
INT s_i_i(OP a).
- The DESCRIPTION is: It
selects the INTvalue of a. There is
first a check whether it is an INTEGERobject or not.
- The RETURN: the returnvalue is the INTvalue or ERROR if an error
occured,
- and the corresponding MACRO is
S_I_I.
which does the
same without a check on INTEGERobject.
harald.fripertinger@kfunigraz.ac.at,
last changed: November 19, 2001
 |  |  | How to select its INTvalue |