asrm_is_confirmation()

Determine whether the current result is a confirmation.

Synopsis:

#include "asr/asrm.h"
 
int asrm_is_confirmation(asr_result_t *result, cfg_item_t *opt_confirm)

Arguments:

result

A pointer to the result.

opt_confirm

A pointer to the configuration item that specifies confirmation options (e.g., "yes", "yeah", "no", "nope", and so on).

Library:

libasr

Description:

The asrm_is_help_or_cancel() function determines whether the specified result is a confirmation, either affirmative or negative.

Returns:

1 The response was affirmative.

-1 The response was negative.

0 The response is not understood (neither affirmative nor negative).