hw/drivers/gps/src/nmea.c
static int
_is_value_set(const char *value)
{
	if (NULL == value || '\0' == *value) {
		return -1;
	}

	return 0;
}
/**
 * Check if a value is not NULL and not empty.
 *
 * Returns 0 if set, otherwise -1.
 */
Check if a value is not NULL and not empty.
Returns 0 if set, otherwise -1.
Check if a value is not NULL and not empty . Returns 0 if set otherwise - 1 .
static int
_is_value_set(const char *value)
{
	if (NULL == value || '\0' == *value) {
		return -1;
	}
	return 0;
}
static int _is_value_set ( const char * value ) { if ( NULL == value || ' \0 ' == * value ) { return -1 ; } return 0 ; }
Check if a value is not NULL and not empty.
Check if a value is not NULL and not empty .