3.2.30. prompt_yesno_cancel

Displays a dialog containing question text, and Yes, No and Cancel buttons.

Note

This macro is not available in the headless debugger.

Syntax

int prompt_yesno_cancel (message)
char *message;

where:

message

The text that you want to appear as a question on the dialog.

Description

This macro displays a dialog containing question text and buttons (Yes, No and Cancel) for the user reply.

Return value

int

One of the following:

0

Yes

1

Cancel

2

No

Rules

None

Example

This example shows how to use prompt_yesno_cancel on the command line:

> ce prompt_yesno_cancel("Is everything OK?")
  Result is: 1  0x00000001

See Also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0175K
Non-Confidential