From 455cd6cadefb6f287fb423773ce397dd265cc5bc Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 3 May 2012 13:04:14 +0200 Subject: rpmatch: provide out-of-line implementation Signed-off-by: Bernhard Reutner-Fischer --- libc/stdlib/stdlib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/stdlib/stdlib.c') diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index 9e8c347fd..de8f084bd 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -316,6 +316,14 @@ long long atoll(const char *nptr) #endif /* defined(ULLONG_MAX) && (LLONG_MAX > LONG_MAX) */ +#endif +/**********************************************************************/ +#ifdef L_rpmatch +int rpmatch (__const char *__response) +{ + return (__response[0] == 'y' || __response[0] == 'Y') ? 1 : + (__response[0] == 'n' || __response[0] == 'N') ? 0 : -1; +} #endif /**********************************************************************/ #if defined(L_strtol) || defined(L_strtol_l) -- cgit v1.2.3