FreeBSD/sys/dev/vxge/vxge.c
/*
 * Removes trailing spaces padded
 * and NULL terminates strings
 */
Removes trailing spaces padded
and NULL terminates strings
Removes trailing spaces padded and NULL terminates strings
static inline void
vxge_null_terminate(char *str, size_t len)
{
	len--;
	while (*str && (*str != ' ') && (len != 0))
		++str;
	--len;
	if (*str)
		*str = '\0';
}
static inline void vxge_null_terminate ( char * str , size_t len ) { len -- ; while ( * str && ( * str != ' ' ) && ( len != 0 ) ) ++ str ; -- len ; if ( * str ) * str = ' \0 ' ; }
Removes trailing spaces padded
 and NULL terminates strings
Removes trailing spaces padded and NULL terminates strings