summaryrefslogtreecommitdiff
path: root/games/pig
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
commit3e150a880447536a0af58c395e5a857635e985d3 (patch)
tree867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/pig
parent8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff)
r?index -> strr?chr
Diffstat (limited to 'games/pig')
-rw-r--r--games/pig/pig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/pig/pig.c b/games/pig/pig.c
index 9ff54390c0d..89230a673af 100644
--- a/games/pig/pig.c
+++ b/games/pig/pig.c
@@ -109,7 +109,7 @@ pigout(buf, len)
* If the word starts with a vowel, append "way". Don't treat 'y'
* as a vowel if it appears first.
*/
- if (index("aeiouAEIOU", buf[0]) != NULL) {
+ if (strchr("aeiouAEIOU", buf[0]) != NULL) {
(void)printf("%.*sway", len, buf);
return;
}
@@ -119,7 +119,7 @@ pigout(buf, len)
* isn't treated as a vowel.
*/
for (start = 0, olen = len;
- !index("aeiouyAEIOUY", buf[start]) && start < olen;) {
+ !strchr("aeiouyAEIOUY", buf[start]) && start < olen;) {
ch = buf[len++] = buf[start++];
if ((ch == 'q' || ch == 'Q') && start < olen &&
(buf[start] == 'u' || buf[start] == 'U'))