Renesas V.1.00 Computer Hardware User Manual


 
Section 11 Samples
Rev. 1.01 Mar. 17, 2008 Page 115 of 128
REJ10J1822-0101
UINT32 __ulOutputParamCount = 0UL;
IOVEC __output[1];
double ret;
UINT32 __ulReturn;
__info.ulMarshallingType = 0UL;
__info.ulServerID = RPCSVR_ID_SMPL;
__info.ulServerVersion = RPCSVR_VERS_SMPL;
__info.ulServerProcedureID = RPC_SMPL_ATOF;
__info.AckMode = RPC_ACK;
__info.pInputIOVectorTable = __input;
__info.ulInputIOVectorTableSize = sizeof(__input) / sizeof (IOVEC);
__info.pOutputIOVectorTable = __output;
__info.ulOutputIOVectorTableSize = sizeof(__output) / sizeof
(IOVEC);
__info.pulLastOutputIOVectorSize = &__ulLastOutputIOVectorSize;
__info.pulReturnValue = (UINT32 *)&__ulReturn;
__input[ __ulInputParamCount ].pBaseAddress = (UINT8 *)(nptr);
__input[ __ulInputParamCount++ ].ulSize = strlen((const char
*)(nptr)) + 1UL;
__output[ __ulOutputParamCount ].pBaseAddress = &ret;
__output[ __ulOutputParamCount++ ].ulSize = sizeof(double);
*rpc_retval_adr() = rpc_call( &__info );
return ret;
}
int atoi ( const char * nptr )
{
UINT32 __ulLastOutputIOVectorSize;
rpc_call_info __info;