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
Implement APIC, RTC, basic ACPI parser and timer support
[lunaix-os.git]
/
lunaix-os
/
libs
/
libc
/
string
/
strchr.c
diff --git
a/lunaix-os/libs/libc/string/strchr.c
b/lunaix-os/libs/libc/string/strchr.c
deleted file mode 100644
(file)
index
f122a7a
..0000000
--- a/
lunaix-os/libs/libc/string/strchr.c
+++ /dev/null
@@
-1,14
+0,0 @@
-#include <libc/string.h>
-
-const char*
-strchr(const char* str, int character)
-{
- char c = (char)character;
- while ((*str)) {
- if (*str == c) {
- return str;
- }
- str++;
- }
- return c == '\0' ? str : NULL;
-}
\ No newline at end of file