strcasecmp()

Compares two strings, ignoring differences in case between them. If the first and second strings are equivalent (except for case differences), this function returns the integer zero. If the first string is higher than the second in the ASCII collating sequence, this function will return an integer greater than zero. If the first string is lower than the second in the collating sequence, this function returns an integer less than zero.

See also: strcmp().

Syntax:

strcasecmp(str1, str2);

where

str1 is the first string to compare.

str2 is the second string to compare.

Example:
fputs(stderr, strcasecmp("A", "a"));
// will print 0

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources