Next: strtod, strtof, strtold, strtod_l, strtof_l, strtold_l—string to double or float, Previous: rand48, drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48—pseudo-random number generators and initialization routines, Up: Standard Utility Functions (stdlib.h) [Contents][Index]
rpmatch—determine whether response to question is affirmative or negativeSynopsis
#include <stdlib.h> int rpmatch(const char *response);
Description
The rpmatch function determines whether response is an affirmative
or negative response to a question according to the current locale.
Returns
rpmatch returns 1 if response is affirmative, 0 if negative, or -1
if not recognized as either.
Portability
rpmatch is a BSD extension also found in glibc.
Notes
No supporting OS subroutines are required.