1SYSFS_STREQ(9)             Basic C Library Functions            SYSFS_STREQ(9)
2
3
4

NAME

6       sysfs_streq - return true if strings are equal, modulo trailing newline
7

SYNOPSIS

9       bool sysfs_streq(const char * s1, const char * s2);
10

ARGUMENTS

12       s1
13           one string
14
15       s2
16           another string
17

DESCRIPTION

19       This routine returns true iff two strings are equal, treating both NUL
20       and newline-then-NUL as equivalent string terminations. It's geared for
21       use with sysfs input strings, which generally terminate with newlines
22       but are compared against values without newlines.
23
25Kernel Hackers Manual 2.6.       November 2011                  SYSFS_STREQ(9)
Impressum