make/test_memrchr.c

Sun, 30 Nov 2025 15:41:15 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 15:41:15 +0100
changeset 1532
313fd460d264
parent 1413
c5a225d7228c
permissions
-rw-r--r--

fix missing memory alignment for linked list node extra data

#include <string.h>

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

mercurial