sysfs_streq(9) [centos man page]
SYSFS_STREQ(9) Basic C Library Functions SYSFS_STREQ(9) 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
Kernel Hackers Manual 3.10 June 2014 SYSFS_STREQ(9)
Check Out this Related Man Page
STRCMP(3) BSD Library Functions Manual STRCMP(3) NAME
strcmp, strncmp -- compare strings LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <string.h> int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t n); DESCRIPTION
The strcmp() and strncmp() functions lexicographically compare the null-terminated strings s1 and s2. The strncmp() function compares not more than n characters. Because strncmp() is designed for comparing strings rather than binary data, characters that appear after a '