---
name: "firestring_strncasecmp"
section: "3"
platform: "linux"
package: "libfirestring-dev"
version: "0.9.12-8"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/firestring_strncasecmp"
---

# firestring\_strncasecmp(3)

strncasecmp(3) provided as a replacement so programs can maintain ANSI C compliance

## NAME

firestring\_strncasecmp - [**strncasecmp**(3)](/strncasecmp/3.md) provided as a replacement so programs can maintain ANSI C compliance

## SYNOPSIS

**#include \<firestring.h\>**\
 **-lfirestring**

**int firestring\_strncasecmp(const char \* const** *s1***, const char \* const** *s2***, const long** *n***)**

## DESCRIPTION

firestring\_strcasecmp() compares the first *size* bytes of *s1* and *s2* in a case insensitive fashion.

## RETURN VALUE

Returns *-1* if the first *n* bytes of s1 \< s2, *1* if the s2 segment \> s1, and *0* if the strings segments do match.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfirestring**(3)](/libfirestring/3.md)
