Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstrstr.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 * @implemented 00014 */ 00015 char * 00016 strstr(const char *s, const char *find) 00017 { 00018 char c, sc; 00019 size_t len; 00020 00021 if ((c = *find++) != 0) 00022 { 00023 len = strlen(find); 00024 do { 00025 do { 00026 if ((sc = *s++) == 0) 00027 return 0; 00028 } while (sc != c); 00029 } while (strncmp(s, find, len) != 0); 00030 s--; 00031 } 00032 return (char *)((size_t)s); 00033 } Generated on Sat May 26 2012 04:35:36 for ReactOS by
1.7.6.1
|