user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user