make/test_memrchr.c

Sun, 30 Nov 2025 16:01:48 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 16:01:48 +0100
changeset 1535
593e349b6d61
parent 1413
c5a225d7228c
permissions
-rw-r--r--

Added tag v3.2 for changeset 38d3f40a50ec

1413
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 #include <string.h>
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 int main() {
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 const char *r = memrchr("tester", 'e', 6);
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 return !(r != NULL);
c5a225d7228c improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 }

mercurial