mirror of
https://github.com/reactos/reactos.git
synced 2025-06-18 22:36:21 +00:00
- 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:
parent
c8a87ec7b8
commit
375959c206
46 changed files with 502 additions and 246 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue