repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
other
/
index.c
blob
4c648de8b3f1ce4fc77cdeeb5a25cdde83c44181
1
#include <lib.h>
2
/* index - find first occurrence of a character in a string */
3
4
#include <string.h>
5
6
char
*
index
(
s
,
charwanted
)
/* found char, or NULL if none */
7
_CONST
char
*
s
;
8
char
charwanted
;
9
{
10
return
(
strchr
(
s
,
charwanted
));
11
}