![How to change an INTEGERobject](http://www.uni-graz.at/~fripert/icons/next.png) |
![Integers](http://www.uni-graz.at/~fripert/icons/up.png) |
![How to make an INTEGERobject](http://www.uni-graz.at/~fripert/icons/previous.png) |
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 "at" uni-graz.at, May 26,
2011
![How to change an INTEGERobject](http://www.uni-graz.at/~fripert/icons/next.png) |
![Integers](http://www.uni-graz.at/~fripert/icons/up.png) |
![How to make an INTEGERobject](http://www.uni-graz.at/~fripert/icons/previous.png) |
![Uni-Graz](http://www.uni-graz.at/~fripert/icons/kfug_klkl.gif) |
![Mathematik](http://www.uni-graz.at/~fripert/icons/mathlogokl.gif) |
How to select
its INTvalue |
![Valid HTML 4.0 Transitional](http://www.w3.org/Icons/valid-html40-blue) |
![Valid CSS!](http://jigsaw.w3.org/css-validator/images/vcss-blue) |