Admin Production ni-theme
Current Publication

strrchr

LabWindows/CVI

strrchr

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

Purpose

Locates the last occurrence of the specified character in a string. The terminating ASCII NUL byte is considered to be part of the string.

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 for which to search in the specified string. The input to this parameter must be a character with an integer value between 0 and 255.

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 3.0 and later