Determine whether the current result is a confirmation.
#include "asr/asrm.h"
int asrm_is_confirmation(asr_result_t *result, cfg_item_t *opt_confirm)
A pointer to the result.
A pointer to the configuration item that specifies confirmation options (e.g., "yes", "yeah", "no", "nope", and so on).
The asrm_is_help_or_cancel() function determines whether the specified result is a confirmation, either affirmative or negative.
1 The response was affirmative.
-1 The response was negative.
0 The response is not understood (neither affirmative nor negative).