Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (s) strcmp64(3)
NAME
strcmp64 - Compares strings
LIBRARY
H-series and J-series native Guardian processes: implicit libraries
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <string.h>
int strcmp64(
const _ptr64 char *s1,
const _prt64 char *s2);
PARAMETERS
s1 Species the first of two strings to compare.
s2 Species the second of two strings to compare.
DESCRIPTION
The strcmp64() function compares the string pointed to by the s1 parameter to the string pointed
to by the s2 parameter. The sign of a nonzero value returned by strcmp64() is determined by the
sign of the difference between the values of the first pair of bytes (both interpreted as unsigned
char) that differ in the two compared objects.
The strcmp64() function compares strings based on the machine collating order. It does not use
the locale-dependent sorting order.
RETURN VALUES
Upon successful completion, the strcmp64() function returns an integer whose value is greater
than, equal to, or less than 0 (zero), according to whether the s1 string is greater than, equal to, or
less than the s2 string. When a successful comparison cannot be made, this function returns a
value of 0 (zero).
RELATED INFORMATION
Functions:, strcat64(3), strchr64(3), strcpy64(3), strlen64(3), strncat64(3), strncmp64(3),
strncpy64(3), strstr64(3).
527192-018 Hewlett-Packard Company 685