source:
trunk/minix/lib/other/index.c@
9
| Last change on this file since 9 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 233 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 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 | } |
Note:
See TracBrowser
for help on using the repository browser.