int sds_getcorner (const sds_point point1, const char *prompt, sds_point point2);
Ask the user to specify the second corner.
This function pauses to get a second corner-point for a rectangle from the user. You may prompt the user to specify the corner-point, either numerically, or by picking a point.
The argument point1 represents the first corner of a rectangle. The rectangle is defined between this point and the next point the user specifies. The points are treated as 2-D x,y coordinates.
The prompt argument is a command-line prompt requesting that the user specify a second point for a rectangle. This argument may be null.
The argument point2 represents the second corner of the rectangle, a point specified by the user.
This function returns one of the following: RTCAN, RTERROR, RTKWORD, RTNONE, or RTNORM.
sds_getpoint(NULL,"\nFirst corner: ",point1);
sds_getcorner(point1,"\nSecond corner: ",point2);
Tell me about...
Programming Overview of SDS (Solutions Development System)