annotate src/klibc/string.h @ 68:0a205396e1a0
- added a generic red-black tree data structure
- added a VM map as an red-black tree of vm_pages in the process structure
- constructed the vm map of the memory passed by the kernel initially to the first process.
author |
John Tsiombikas <nuclear@mutantstargoat.com> |
date |
Mon, 10 Oct 2011 04:16:01 +0300 |
parents |
633e35c64772 |
children |
f83f50c17c3b |
rev |
line source |
nuclear@0
|
1 #ifndef STRING_H_
|
nuclear@0
|
2 #define STRING_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 #include <stdlib.h>
|
nuclear@0
|
5
|
nuclear@1
|
6 void memset(void *s, int c, size_t n);
|
nuclear@2
|
7 void memset16(void *s, int c, size_t n);
|
nuclear@2
|
8
|
nuclear@1
|
9 void *memcpy(void *dest, const void *src, size_t n);
|
nuclear@1
|
10 void *memmove(void *dest, const void *src, size_t n);
|
nuclear@0
|
11
|
nuclear@5
|
12 size_t strlen(const char *s);
|
nuclear@5
|
13
|
nuclear@5
|
14 char *strchr(const char *s, int c);
|
nuclear@5
|
15 char *strrchr(const char *s, int c);
|
nuclear@5
|
16
|
nuclear@67
|
17 int strcmp(const char *s1, const char *s2);
|
nuclear@67
|
18
|
nuclear@0
|
19 #endif /* STRING_H_ */
|