---
name: "str_equal"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/str_equal"
---

# str\_equal(3)

compare two ASCIIZ strings

## NAME

str\_equal - compare two ASCIIZ strings

## SYNTAX

**#include \<libowfat/str.h\>**

size\_t **str\_equal**(const char\* *a*,const char\* *b*);

## DESCRIPTION

**str\_equal** returns nonzero if *a* and *b* match up to and including the first occurrance of \\0.

If the strings are different, str\_equal does not read bytes past the first difference.

## SEE ALSO

[strlen(3)](/strlen/3.md)
