openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/cmd/systool.c
static void remove_end_newline(char* value)
{
    char* p = value + (strlen(value) - 1);

    if (p && *p == '\n')
        *p = '\0';
}
/**
 * remove_end_newline: removes newline on the end of an attribute value
 * @value: string to remove newline from
 */
removes newline on the end of an attribute value
@value: string to remove newline from
removes newline on the end of an attribute value @value : string to remove newline from
static void remove_end_newline(char* value)
{
    char* p = value + (strlen(value) - 1);
    if (p && *p == '\n')
        *p = '\0';
}
static void remove_end_newline ( char * value ) { char * p = value + ( strlen ( value ) - 1 ) ; if ( p && * p == ' \n ' ) * p = ' \0 ' ; }
remove_end_newline: removes newline on the end of an attribute value
 @value: string to remove newline from
remove_end_newline : removes newline on the end of an attribute value @value : string to remove newline from