make/test_memrchr.c

Sat, 29 Nov 2025 12:10:27 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 29 Nov 2025 12:10:27 +0100
changeset 1522
d0b5eb033b2a
parent 1413
c5a225d7228c
permissions
-rw-r--r--

fix install-lib.sh compatibility with older shells

#include <string.h>

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

mercurial