Case‐insensitive comparison of at most n characters of two C strings.

Synopsis

Declared in <openssl/crypto.h>

int
OPENSSL_strncasecmp(
    char const* s1,
    char const* s2,
    size_t n);

Return Value

Negative, zero, or positive like strncasecmp().

Parameters

Name

Description

s1

First string.

s2

Second string.

n

Maximum number of characters to compare.

Created with MrDocs