LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

stricmp

int stricmp (const char string1[], const char string2[]);

Purpose

Compares two NUL-terminated strings, based on the value of the characters interpreted as an unsigned char. The comparison is not case-sensitive.

Parameters

Input
Name Type Description
string1 const char [] Contains a pointer to the string that is compared to string2.
string2 const char [] Contains a pointer to the string that is compared to string1.

Return Value

Name Type Description
comparisonResult int Contains the result of the comparison between the two specified strings, based on the value of the characters interpreted as unsigned chars. The comparison is not case-sensitive. The following explains the possible return values:
Result Description
Positive integer string1 is greater than string2
Zero string1 is equal to string2
Negative integer string1 is less than string2

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later

Was this information helpful?

Previous

strftime

Next

strlen

Previous

strftime

Next

strlen

Log in to get a better experience

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit