Renesas REJ10J1822-0101 Computer Hardware User Manual


 
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 51 of 128
REJ10J1822-0101
Example 3:
Specification of a server function
double func(double inf);
The input is inf and a value of type double will be returned.
Definition of the server function
[RETEXT]double dret = func([IN DFLT]double inf);
Description
Directive to extend the return value: [RETEXT]
Specification of the return value: double dret =
Function name: func
Parameter directive: [IN DFLT]
Parameter specification: double inf
Option: None
For details on each of the descriptions, refer to the following sections.
Function-type directives: 6.2, Function-Type Directives
Specifying the return value: 6.2, Function-Type Directives
Function name: 6.3, Function Names
Parameter: 6.4, Parameters
Option: 6.7, Optional Keywords