3.2.29. prompt_yesno

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

Note

This macro is not available in the headless debugger.

Syntax

int prompt_yesno (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 two buttons (Yes and No) for the user reply.

Return value

int

One of the following:

0

Yes

2

No

Rules

None

Example

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

> ce prompt_yesno("Is everything OK?")
  Result is: 0  0x00000000

See Also

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