Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>_retnd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _retnd()
 Post a numeric return value using a double
------------------------------------------------------------------------------
 C Prototype

     #include "extend.api"
     void _retnd(
                  double dNumber
                )

 Arguments

     dNumber is a numeric expression of type double.

 Returns

     _retnd() has no return value.

 Description

     _retnd() posts a numeric value into CA-Clipper's return value area.
     When your Extend routine returns control to the calling CA-Clipper
     program, the posted value becomes the CA-Clipper return value of your
     Extend routine.

 Examples

     .  From C:

        _retnd( (double)3.14 );

     .  From Assembly language:

        EXTRN __retnd:FAR
              push  word ptr (MyPi+6)    ; push double number
                                         ; (creation of MyPi not shown)
              push  word ptr (MyPi+2)
              push  word ptr (MyPi+4)
              push  word ptr MyPi
              call  __retnd
              add   sp, 8                ; reset stack pointer

 Files:  Library is CLIPPER.LIB, header file is Extend.api.


See Also: _parnd() _retni() _retnl() _stornd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson