Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwcsstr.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/crt/?????? 00005 * PURPOSE: Unknown 00006 * PROGRAMER: Unknown 00007 * UPDATE HISTORY: 00008 * 25/11/05: Added license header 00009 */ 00010 00011 #include <precomp.h> 00012 00013 /* 00014 * @implemented 00015 */ 00016 wchar_t *wcsstr(const wchar_t *s,const wchar_t *b) 00017 { 00018 wchar_t *x; 00019 wchar_t *y; 00020 wchar_t *c; 00021 x=(wchar_t *)s; 00022 while (*x) { 00023 if (*x==*b) { 00024 y=x; 00025 c=(wchar_t *)b; 00026 while (*y && *c && *y==*c) { 00027 c++; 00028 y++; 00029 } 00030 if (!*c) 00031 return x; 00032 } 00033 x++; 00034 } 00035 return NULL; 00036 } Generated on Sun May 27 2012 04:36:47 for ReactOS by
1.7.6.1
|