sds_getreal

int sds_getreal (const char *prompt, double *answer);


Ask the user to specify a real number.


This function pauses to get a real number from the user. You may prompt the user to enter the number.

The argument prompt is a command-line prompt requesting that the user enter a real number.

The argument answer is a pointer to the real number entered by the user.

This function returns one of the following: RTCAN, RTERROR, RTKWORD, RTNONE, or RTNORM.

Example

sds_real real1;

sds_getreal("\nEnter a real number: ",&real1);

sds_printf("\nYou entered %f. ",real1);

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)

sds_getint