PROMPT - prompt for input at terminal.

Usage:

B:
   prompt( [ unit, ] format, arg1, arg2, ... );
C:
   void prompt([FILE* unit,] const char *format, ...);

Where:

unit
is the number of an open input unit. If "unit" is not specified, the default is the current read unit.
format, arg1, arg2, ...
are a PRINTF-style format string and arguments to be used in formatting the prompt.

Description:

PROMPT uses the given "format" string and arguments to prepare a prompting line for "unit". If "unit" has an associated output unit (i.e. you are reading from the terminal in TSS or from the console in batch) and the next call to GETCHAR would cause a new line to be read from that device, the prompting line is printed as output. Under any other conditions, the prompting line is thrown away.

See Also:

expl b lib printf

Copyright © 1996, Thinkage Ltd.