table of contents
other versions
SYSFS_STREQ(9) | Basic C Library Functions | SYSFS_STREQ(9) |
NAME¶
sysfs_streq - return true if strings are equal, modulo trailing newlineSYNOPSIS¶
bool sysfs_streq(const char * s1, const char * s2);
ARGUMENTS¶
const char * s1one string
const char * 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¶
July 2017 | Kernel Hackers Manual 4.11 |