git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Implement APIC, RTC, basic ACPI parser and timer support
[lunaix-os.git]
/
lunaix-os
/
libs
/
klibc
/
string
/
strchr.c
1
#include <klibc/string.h>
2
3
const char*
4
strchr(const char* str, int character)
5
{
6
char c = (char)character;
7
while ((*str)) {
8
if (*str == c) {
9
return str;
10
}
11
str++;
12
}
13
return c == '\0' ? str : NULL;
14
}