Files
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

12 lines
230 B
C

#include <string.h>
#include <assert.h>
int main() {
char str[] = "This is a sample string";
char *pch;
pch = strrchr(str, 's');
// The last occurence of 's' is at position 18
assert(pch - str + 1 == 18);
return 0;
}