Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (s) strcasecmp(3)
NAME
strcasecmp - Compare two strings, ignoring case
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZSTFNSRL
G-series native OSS processes: /G/system/sysnn/zstfnsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <strings.h>
int strcasecmp(
const char *s1,
const char *s2);
PARAMETERS
s1 Is a pointer to the first string to be compared.
s2 Is a pointer to the second string to be compared.
DESCRIPTION
The strcasecmp() function performs a case-insensitive comparison of the strings pointed to by
the s1 and s2 parameters.
NOTES
The strcasecmp() function can be called by native processes only.
In the POSIX locale, this function first converts uppercase characters to lowercase, then per-
forms byte comparisons. Its behavior in other locales is undefined.
RETURN VALUES
If the string pointed to by s1 is, ignoring case, greater than the string pointed to by s2, the
strcasecmp() function returns an integer greater than 0 (zero). If the string pointed to by s1 is,
ignoring case, less than the string pointed to by s2, strcasecmp() returns an integer less than 0
(zero). If the string pointed to by s1 is, ignoring case, equal to the string pointed to by s2, the
strcasecmp() function returns 0 (zero).
ERRORS
None.
RELATED INFORMATION
Functions: strncasecmp(3).
STANDARDS CONFORMANCE
The strcasecmp() function is defined in the XPG4 Version 2 specification.
527192-018 Hewlett-Packard Company 6−79