Contents page

Rules for Tools/areyousure()


areyousure()

SYNOPSIS
    int areyousure(char *question);

ARGUMENTS
    `char *question'
          Prompt.

DESCRIPTION
     `areyousure()' opens a requester with "Are you sure you want to"
     followed by your prompt string and "Yes" and "No" boxes to click
     on.  If the user selects YES, `areyousure()' returns TRUE.

     The following code makes a decision based on `areyousure()':
	 
     if (*functions->areyousure)("have ham in your sandwich?") 
          {
             puthaminsandwich(mayo); 
          }
     else {
             justcheese(mayo); 
          }