FFFF minix/lib/other/index.c at R3.1.4 · fyy3/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
executable file
·
11 lines (9 loc) · 233 Bytes

index.c

File metadata and controls

executable file
·
11 lines (9 loc) · 233 Bytes
#include <lib.h>
/* index - find first occurrence of a character in a string */
#include <string.h>
char *index(s, charwanted) /* found char, or NULL if none */
_CONST char *s;
char charwanted;
{
return(strchr(s, charwanted));
}
0