Admin Production ni-theme
Current Publication

_mbsrchr

LabWindows/CVI

_mbsrchr

char *_mbsrchr (const char stringToSearch[], int charToFind);

Purpose

Locates the last occurrence of the specified character in a given string. The terminating ASCII NUL byte is considered part of the 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 NUL-terminated string that is searched for the specified character.
charToFind int Contains the character to locate in the specified string. The input to this parameter can be any valid single or multibyte character.

Return Value

Name Type Description
matchedChar char * Contains a pointer to the located character or a NUL pointer if the character does not occur in the string.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later