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

# byte\_equal(3diet)

compare two strings

## NAME

byte\_equal - compare two strings

## SYNTAX

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