diff options
author | Larry Wall <larry@netlabs.com> | 1993-10-10 00:00:00 +0000 |
---|---|---|
committer | Larry Wall <larry@netlabs.com> | 1993-10-10 00:00:00 +0000 |
commit | 93a17b20b6d176db3f04f51a63b0a781e5ffd11c (patch) | |
tree | 764149b1d480d5236d4d62b3228bd57f53a71042 /doio.c | |
parent | 79072805bf63abe5b5978b5928ab00d360ea3e7f (diff) | |
download | perl-93a17b20b6d176db3f04f51a63b0a781e5ffd11c.tar.gz |
perl 5.0 alpha 3
[editor's note: the sparc executables have not been included,
and emacs backup files have been removed]
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -236,7 +236,7 @@ I32 len; } } if (!fp) { - if (dowarn && io->type == '<' && index(name, '\n')) + if (dowarn && io->type == '<' && strchr(name, '\n')) warn(warn_nl, "open"); Safefree(myname); goto say_false; @@ -909,7 +909,7 @@ dARGS sv_setpv(statname,SvPVn(sv)); laststype = OP_STAT; laststatval = stat(SvPVn(sv),&statcache); - if (laststatval < 0 && dowarn && index(SvPVn(sv), '\n')) + if (laststatval < 0 && dowarn && strchr(SvPVn(sv), '\n')) warn(warn_nl, "stat"); return laststatval; } @@ -941,7 +941,7 @@ dARGS #else laststatval = stat(SvPVn(sv),&statcache); #endif - if (laststatval < 0 && dowarn && index(SvPVn(sv), '\n')) + if (laststatval < 0 && dowarn && strchr(SvPVn(sv), '\n')) warn(warn_nl, "lstat"); return laststatval; } @@ -1033,7 +1033,7 @@ char *cmd; if (*s == '=') goto doshell; for (s = cmd; *s; s++) { - if (*s != ' ' && !isALPHA(*s) && index("$&*(){}[]'\";\\|?<>~`\n",*s)) { + if (*s != ' ' && !isALPHA(*s) && strchr("$&*(){}[]'\";\\|?<>~`\n",*s)) { if (*s == '\n' && !s[1]) { *s = '\0'; break; |