string: add lock to strtok

This commit is contained in:
Michael Shaw 2023-10-18 20:51:49 -04:00
commit 3806d53237
4 changed files with 40 additions and 1 deletions

View file

@ -7,6 +7,8 @@
#include <stdint.h>
#include <stddef.h>
#include <kernel/lock.h>
void *memcpy(void *dest, const void *src, size_t num);
int memcmp(const void *aa, const void *bb, size_t num);
void *memset(void *str, int c, size_t n);
@ -16,5 +18,7 @@ char **strsplit(const char *str, char delim, int *num);
size_t strlen(const char *c);
int atoi(const char *a);
extern spinlock_t strtok_lock;
#endif /* __ASM__ */
#endif /* _STRING_H_ */