LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

strstr

strstr

char *strstr (const char stringToSearch[], const char substringToFind[]);

Purpose

Locates the first occurrence of a sequence of characters excluding the terminating ASCII NUL byte in a string.

Parameters

Input
Name Type Description
stringToSearch const char [] Contains a pointer to the string that is searched to locate the specified substring.
substringToFind const char [] Contains a pointer to the sequence of characters that are searched for in the specified string. The terminating ASCII NUL byte is not included during the search.

Return Value

Name Type Description
matchedSubstring char * Contains a pointer to the matched substring or a NUL pointer if the substring is not found. If substring_toFind has zero length, the function returns string_toSearch.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?