Jerry D. Hedden [Fri, 23 Mar 2007 09:40:02 +0000 (02:40 -0700)]
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <256688.25862.qm@web30215.mail.mud.yahoo.com>
p4raw-id: //depot/perl@30725
bigend -= lend - little;
OUTER:
while (big <= bigend) {
- if (*big++ != first)
- goto OUTER;
- for (x=big,s=little; s < lend; x++,s++) {
- if (*s != *x)
- goto OUTER;
+ if (*big++ == first) {
+ for (x=big,s=little; s < lend; x++,s++) {
+ if (*s != *x)
+ goto OUTER;
+ }
+ return (char*)(big-1);
}
- return (char*)(big-1);
}
}
return NULL;