3.2.19. 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 0x01

See Also

The following macros provide similar or related functionality:

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0175H
Non-Confidential