_mbsstr
char *_mbsstr (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.
Refer to the Programming for Multibyte Character Sets in LabWindows/CVI topic for information about working with multibyte character sets.
Parameters
| Input | ||
| Name | Type | Description |
| stringToSearch | const char [] | Contains a pointer to the string that is searched for 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 in 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 6.0 and later