make/test_memrchr.c

Fri, 03 Oct 2025 18:58:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 03 Oct 2025 18:58:44 +0200
changeset 1415
40074e643663
parent 1413
c5a225d7228c
permissions
-rw-r--r--

go back to ctype.h, but this time try to avoid crashes in Microsoft's implementation

#include <string.h>

int main() {
    const char *r = memrchr("tester", 'e', 6);
    return !(r != NULL);
}

mercurial