---
name: "sysfs_streq"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sysfs_streq"
---

# sysfs\_streq(9)

return true if strings are equal, modulo trailing newline

## NAME

sysfs\_streq - return true if strings are equal, modulo trailing newline

## SYNOPSIS

**bool sysfs\_streq(const char \*** *s1***, const char \*** *s2***);**

## ARGUMENTS

*s1*

one string

*s2*

another string

## DESCRIPTION

This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.

## COPYRIGHT
