1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-11-03 19:12:42 +03:00

Update from GNU libc.

This commit is contained in:
Jim Meyering
2000-11-17 08:19:01 +00:00
parent 7822d5fe7f
commit 00fba41266

View File

@@ -28,11 +28,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# include <config.h>
#endif
#include <string.h>
#if defined _LIBC || defined HAVE_STRING_H
# include <string.h>
#endif
#include <sys/types.h>
typedef unsigned chartype;
#undef strstr
char *
strstr (const char *phaystack, const char *pneedle)
{
@@ -105,7 +109,7 @@ jin: a = *++haystack;
}
while (*rhaystack == a);
needle = rneedle; /* took the register-poor aproach */
needle = rneedle; /* took the register-poor approach */
if (a == '\0')
break;