ReactOS 0.4.16-dev-2104-gb84fa49
strstr.c File Reference
#include <precomp.h>
Include dependency graph for strstr.c:

Go to the source code of this file.

Functions

char *CDECL strstr (const char *s, const char *find)
 

Function Documentation

◆ strstr()

char *CDECL strstr ( const char s,
const char find 
)

Definition at line 17 of file strstr.c.

18{
19 char c, sc;
20 size_t len;
21
22 if ((c = *find++) != 0)
23 {
24 len = strlen(find);
25 do {
26 do {
27 if ((sc = *s++) == 0)
28 return 0;
29 } while (sc != c);
30 } while (strncmp(s, find, len) != 0);
31 s--;
32 }
33 return (char *)((size_t)s);
34}
static TAGID TAGID find
Definition: db.cpp:156
unsigned int size_t
Definition: corecrt.h:203
_ACRTIMP size_t __cdecl strlen(const char *)
Definition: string.c:1592
_ACRTIMP int __cdecl strncmp(const char *, const char *, size_t)
Definition: string.c:3330
GLdouble s
Definition: gl.h:2039
const GLubyte * c
Definition: glext.h:8905
GLenum GLsizei len
Definition: glext.h:6722
#define c
Definition: ke_i.h:80

Referenced by __Extract_locale_name(), _mbsstr(), _mbsstr_l(), _server_read_request(), acpi_bus_match(), assign_file_addresses(), Base64WithHeaderAndTrailerToBinaryA(), Bus_PDO_PnP(), Bus_PDO_QueryDeviceCaps(), ButtonWaitThread(), CmdLineParse(), CmpGetBiosVersion(), copy_headers_to_buf(), count_pars(), crash_and_debug(), create_body_offset_list(), D3DXCompileShader(), DiskOpen(), doDebugger(), DoDESCRIPTIONS(), DoKEYNAME(), DoLANGUAGENAMES(), DoTestEntry(), DriverEntry(), EnumSymbolsProc(), ExpInitializeExecutive(), extract_test(), extract_test_proc(), file_write_http_header(), FilenameExtensionIndicatesASCII(), find_str(), findend(), format_parameterized_type_c_name(), FsVolumeInfo(), FTPFileExistsNlst(), FTPFileExistsStat(), FTPQueryFeatures(), get_attr(), get_info_log_line(), get_line(), get_subtests(), getline(), getSection(), GetSystemName(), gl_check_inputrc_for_vi(), HalpDebugPciDumpBus(), HalpGetParameters(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_set_thread(), handle_gdb_thread_alive(), handle_gdb_write_mem(), header_cb(), InbvDriverInitialize(), init_debug(), InitPrefs(), InitTermcap(), InternetCreateUrlA_test(), IopCreateArcNames(), IopStartRamdisk(), is_ssi_file(), KdDebuggerInitialize0(), KdInitSystem(), KiInitializeKernel(), KiInitializeKernelMachineDependent(), LlbEnvRead(), Load_CP2Unicode_Table(), LoadAndBootWindowsCommon(), LoadReactOSSetup(), main(), Main_DirectDraw_GetDeviceIdentifier7(), MayUseFirewall(), NextLine(), ntlm_InitializeSecurityContextW(), OpenControlConnection(), openSection(), parse_obj_node_param(), ParseField(), CDFParser::PerformFileCopy(), Phase1InitializationDiscard(), PoInitSystem(), process_pending_renames(), process_preprocessor(), processRequest(), read_dependencies(), read_value(), regdump(), RegInitializeRegistry(), run_child_process(), run_tests(), search_addchar(), search_back(), search_forw(), SearchCHM_File(), select_card_handler(), send_file(), server_thread(), shader_hw_sgn(), shader_trace_init(), TestCase::shouldRunThis(), SMTPTransport_CallbackSendHello(), CHttpClient::SplitUri(), spy_init(), START_TEST(), strip_comments(), test_accept_encoding(), test_argify(), test_BuildCommDCB(), test_complicated_cookie(), test_cookie_header(), test_EM_STREAMOUT_empty_para(), test_EM_STREAMOUT_FONTTBL(), test_ExitCode(), test_ExtractAssociatedIcon(), test_FindFirstFile_wildcards(), test_getstring_no_extra(), test_header(), test_hittest(), test_listbox_dlgdir(), test_long_url(), test_MsiGetFileVersion(), test_query_dos_deviceA(), test_SHGetFolderPathA(), TrimNonPrintableProd(), TRIO_ARGS2(), unfold_header(), UnLslRLine(), wined3d_guess_card_vendor(), wined3d_guess_gl_vendor(), WinLdrInitializePhase1(), WinMain(), wstr_contains(), xHalIoAssignDriveLetters(), XIPInit(), and xkeymap_read().