make/test_memrchr.c

Sun, 30 Nov 2025 15:45:35 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 15:45:35 +0100
changeset 1533
6d65b1e97136
parent 1413
c5a225d7228c
permissions
-rw-r--r--

include stdalign.h when not using C23 or newer

#include <string.h>

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

mercurial