---
name: "str_equal"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/str_equal/3diet"
---

# str\_equal(3diet)

compare two ASCIIZ strings

## NAME

str\_equal - compare two ASCIIZ strings

## SYNTAX

**#include \<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)
