suse man page for sysfs_streq

Query: sysfs_streq

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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 2.6. July 2010 SYSFS_STREQ(9)
Related Man Pages
stpcpy(3) - mojave
stpncpy(3) - mojave
strncpy(3) - mojave
strncmp(3) - freebsd
strcmp(3) - freebsd
Similar Topics in the Unix Linux Community
Getting command output to putty window title.
SOCKS proxy & PAM configuration exposure
A (ksh) Library For and From UNIX.com
Docker learning Phase-I
Shopt -s histappend