DOKK / manpages / debian 12 / libbson-doc / bson_strcasecmp.3.en
BSON_STRCASECMP(3) libbson BSON_STRCASECMP(3)

bson_strcasecmp - bson_strcasecmp()

int
bson_strcasecmp (const char *s1, const char *s2);


  • s1: A string.
  • s2: A string.

A portable version of strcasecmp().

Returns a negative integer if s1 sorts lexicographically before s2, a positive integer if it sorts after, or 0 if they are equivalent, after translating both strings to lower case.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1