git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: add a async read/write variant to device ops, with allow async io to be...
[lunaix-os.git]
/
lunaix-os
/
includes
/
klibc
/
string.h
diff --git
a/lunaix-os/includes/klibc/string.h
b/lunaix-os/includes/klibc/string.h
index 9cbcb31d06ae7a8501dc7862ac5fb7793343673c..04272ed90ba15c232e1c431884de8388618cf610 100644
(file)
--- a/
lunaix-os/includes/klibc/string.h
+++ b/
lunaix-os/includes/klibc/string.h
@@
-1,33
+1,40
@@
#ifndef __LUNAIX_STRING_H
#define __LUNAIX_STRING_H
#ifndef __LUNAIX_STRING_H
#define __LUNAIX_STRING_H
-#include <stddef.h>
-
int
int
-memcmp(const void*
, const void*, size_t
);
+memcmp(const void*
dest, const void* src, unsigned long size
);
void*
void*
-memcpy(void*
__restrict, const void* __restrict, size_t
);
+memcpy(void*
dest, const void* src, unsigned long size
);
void*
void*
-memmove(void*
, const void*, size_t
);
+memmove(void*
dest, const void* src, unsigned long size
);
void*
void*
-memset(void*
, int, size_t
);
+memset(void*
dest, int val, unsigned long size
);
-size_t
+unsigned long
strlen(const char* str);
char*
strcpy(char* dest, const char* src);
strlen(const char* str);
char*
strcpy(char* dest, const char* src);
-size_t
-strnlen(const char* str,
size_t
max_len);
+unsigned long
+strnlen(const char* str,
unsigned long
max_len);
char*
char*
-strncpy(char* dest, const char* src,
size_t
n);
+strncpy(char* dest, const char* src,
unsigned long
n);
const char*
strchr(const char* str, int character);
const char*
strchr(const char* str, int character);
+int
+streq(const char* a, const char* b);
+
+void
+strrtrim(char* str);
+
+char*
+strltrim_safe(char* str);
+
#endif /* __LUNAIX_STRING_H */
#endif /* __LUNAIX_STRING_H */