kern

view src/klibc/string.h @ 76:0fe6eef16335

holy fuck, copy_on_write didn't actually do the copy!!!!
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Nov 2011 04:53:46 +0200
parents 633e35c64772
children f83f50c17c3b
line source
1 #ifndef STRING_H_
2 #define STRING_H_
4 #include <stdlib.h>
6 void memset(void *s, int c, size_t n);
7 void memset16(void *s, int c, size_t n);
9 void *memcpy(void *dest, const void *src, size_t n);
10 void *memmove(void *dest, const void *src, size_t n);
12 size_t strlen(const char *s);
14 char *strchr(const char *s, int c);
15 char *strrchr(const char *s, int c);
17 int strcmp(const char *s1, const char *s2);
19 #endif /* STRING_H_ */