sds_getinput

int sds_getinput (char *string);


Retrieve the input the user just typed or specified.


This function retrieves information entered by the user in response to the previous function. This function must immediately follow a user-input function. In addition, the previous function must return RTKWORD or RTSTR; otherwise, it will fail.

The argument string is a string of a maximum of 511 characters, containing whatever the user entered. The last (512) character in the string is always Ø (ASCII 0 or null).

This function returns RTERROR or RTNORM.

Example

int int1;

char string1[512];

sds_initget(128,""); // Allows arbitrary input

sds_getint("\nEnter an integer: ",&int1); // User may enter 123abc

sds_getinput(string1); // String1 would be: 123abcØ

sds_printf("\nYou entered %s ",string1);

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)