projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 82/06/26 14:01:31 by sam
[unix-history]
/
usr
/
src
/
usr.bin
/
mail
/
index.c
/*
* Determine the leftmost index of the character
* in the string.
*/
static char
*
SccsId
=
"@(#)index.c 2.1 %G%"
;
char
*
index
(
str
,
ch
)
char
*
str
;
{
register
char
*
cp
;
register
int
c
;
for
(
c
=
ch
,
cp
=
str
; *
cp
;
cp
++)
if
(*
cp
==
c
)
return
(
cp
);
return
(
NOSTR
);
}