nativeos/kernel/stdkern
Dani Rodríguez ac5b207ed6 stdkern: implement strchr and strrchr functions
strchr is a function that will return a pointer to the first ocurrence
of the given character in a string. strrchr is a function that returns a
pointer to the last ocurrence of the given character in the string.

Related to these functions, the strchrnul function is not implemented.
This is becaus strchrnul is a GNU extension and therefore I doubt I am
going to require this inside the kernel, although the userland libc will
have to provide it probably.
2022-01-09 12:41:55 +01:00
..
list.c stdkern: add doubly linked list 2021-07-22 00:20:04 +02:00
memcpy.c stdkern: rebrand libc as stdkern 2021-07-17 20:13:50 +02:00
memset.c stdkern: add memset function 2021-07-22 01:04:38 +02:00
ringbuf.c stdkern: add a ring buffer 2021-08-04 01:38:25 +02:00
strcat.c stdkern: implement strcat and strncat 2022-01-02 10:53:50 +01:00
strchr.c stdkern: implement strchr and strrchr functions 2022-01-09 12:41:55 +01:00
strcmp.c stdkern: rebrand libc as stdkern 2021-07-17 20:13:50 +02:00
strcpy.c stdkern: fix buffer overflows after strcpy 2021-11-12 21:51:49 +01:00
strdup.c stdkern: add strdup function 2021-11-12 21:55:00 +01:00
strlen.c stdkern: rebrand libc as stdkern 2021-07-17 20:13:50 +02:00
strsep.c stdkern: add strsep standard library function 2021-08-30 19:46:59 +02:00