- Sync some changes in strings from libcntpr.

- Move string implementation (in "header" files) into /string dir.
- Copy over libcntpr-specific implementations into _nt.c files (for now, later they could do with a define).
- libcntpr's is now almost fully syncronized and could be merged into the tree except for "except" directory.

svn path=/trunk/; revision=30283
This commit is contained in:
Aleksey Bragin 2007-11-08 21:06:20 +00:00
parent c8a87ec7b8
commit 375959c206
46 changed files with 502 additions and 246 deletions

View file

@ -8,14 +8,12 @@
* 25/11/05: Added license header
*/
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>
/*
* @implemented
*/
char *strstr(const char *s, const char *find)
char *
strstr(const char *s, const char *find)
{
char c, sc;
size_t len;
@ -31,5 +29,5 @@ char *strstr(const char *s, const char *find)
} while (strncmp(s, find, len) != 0);
s--;
}
return (char *)s;
return (char *)((size_t)s);
}