-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkstring.h
49 lines (25 loc) · 1.15 KB
/
kstring.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _KERNEL_FUNCTIONS_C_H_
#define _KERNEL_FUNCTIONS_C_H_
typedef unsigned int size_t;
void* k_memcpy(void* destination, const void* source, size_t num);
void* k_memmove(void* destination, const void* source, size_t num);
void* k_memset(void* ptr, int value, size_t num);
int k_memcmp(const void* ptr1, const void* ptr2, size_t num);
const void* k_memchr(const void* ptr, int value, size_t num);
char* k_strcat(char* destination, const char* source);
const char* k_strchr(const char* str, int character);
int k_strcmp(const char* str1, const char* str2);
int k_strncmp(const char* str1, const char* str2, size_t n);
char *k_strrev(char *str);
size_t k_strlen(const char* str);
char* k_strcpy(char* destination, const char* source);
void k_rev8(char* pbyte1, char* pbyte2);
void k_rev16(short* pword1, short* pword2);
void k_rev32(int* pdword1, int* pdword2);
void k_rev64(long long* pqword1, long long* pqword2);
void * k_memrev(void *ptr, size_t num);
void *k_itoa(int num, char* str, int base);
int k_sprintf(char *str, const char *fmt, ...);
char k_toupper(char c);
char k_tolower(char c);
#endif