[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
_retnd()
Post a numeric return value using a double
------------------------------------------------------------------------------
C Prototype
#include "Extend.h"
void _retnd(double n)
Arguments
n is a numeric expression of type double.
Returns
_retnd() has no return value.
Description
_retnd() is used to post a numeric value into Clipper's return value
area. Later, when your C or Assembly language function returns control
to the calling Clipper program, the posted return value will be
available as the Clipper return value from your C or Assembly language
function.
Examples
From C:
_retnd( (double)3.14 );
From Assembly language:
EXTRN __retnd:FAR
push word ptr (MyPi+6) ; push double number (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.h.
See Also:
_parnd()
_retni()
_retnl()
_stornd()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson