rpmatch —
    determine whether the response to a question is affirmative
    or negative
Standard C Library (libc, -lc)
#include
    <stdlib.h>
int
  
  rpmatch(const
    char *response);
The
    rpmatch()
    function determines whether the response argument is
    an affirmative or negative response to a question according to the current
    locale.
The rpmatch() functions returns:
  - 1
- The response is affirmative.
- 0
- The response is negative.
- -1
- The response is not recognized.
The rpmatch() function appeared in
    FreeBSD 6.0.