RPMATCH(3) BSD Programmer's Manual RPMATCH(3)
rpmatch - check user input for confirmation
#define _SVID_SOURCE #include <stdlib.h> int rpmatch(const char *response);
The rpmatch() function is a GNU extension and should not be used in new code. It is only implemented in MirBSD for compatibility reasons. It ba- sically checks if the response string begins with "Y" or "y", returning 1, or "N" or "n", returning 0; returning -1 otherwise.
The rpmatch() function was first introduced to BSD in MirBSD #10. GNU December 20, 2009 1