---
name: "bson_strcasecmp"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_strcasecmp"
---

# bson\_strcasecmp(3)

## SYNOPSIS

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

## PARAMETERS

- •

  **s1**: A string.

- •

  **s2**: A string.

## DESCRIPTION

A portable version of **strcasecmp()**.

## RETURNS

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.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
