Files
KirkOS/user/include/mlibc/options/glibc/generic/stdlib.cpp
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

12 lines
210 B
C++

#include <stdlib.h>
int rpmatch(const char *resp) {
if(!resp || resp[0] == '\0')
return -1;
if(resp[0] == 'y' || resp[0] == 'Y')
return 1;
if(resp[0] == 'n' || resp[0] == 'N')
return 0;
return -1;
}