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

# byte\_equal(3)

compare two strings

## NAME

byte\_equal - compare two strings

## SYNTAX

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

int **byte\_equal**(const char \**one*,size\_t *len*,const char \**two*);

## DESCRIPTION

*byte\_equal* returns 1 if the strings are equal, 0 otherwise.

When the strings are different, byte\_equal does not read bytes past the first difference.

## SEE ALSO

[byte\_diff(3)](/byte_diff/3.md)
