success = GetPrompt(buf, len)
D0 D1 D2
BOOL GetPrompt(STRPTR, LONG)
Extracts the prompt string from the CLI structure (
struct CommandLineInterface) and puts it into the provided buffer. If the buffer is too small, the string is truncated appropriately and a failure code returned.
If no CLI structure is present, an empty string is returned in the buffer, and failure from the call is indicated; calling
IoErr() will return ERROR_OBJECT_WRONG_TYPE.