hw/drivers/gps/src/nmea.c
static char *
_crop_sentence(char *sentence, size_t length)
{
	/* Skip type word, 7 characters (including $ and ,) */
	sentence += NMEA_PREFIX_LENGTH + 2;

	/* Null terminate before end of line/sentence, 2 characters */
	//sentence[length - 9] = '\0';

	/* Remove checksum, if there is one */
	//if ('*' == sentence[length - 12]) {
	//	sentence[length - 12] = '\0';
	//}

	return sentence;
}
/**
 * Crop a sentence from the type word and checksum.
 *
 * The type word at the beginning along with the dollar sign ($) will be
 * removed. If there is a checksum, it will also be removed. The two end
 * characters (usually <CR><LF>) will not be included in the new string.
 *
 * sentence is a validated NMEA sentence string.
 * length is the char length of the sentence string.
 *
 * Returns pointer (char *) to the new string.
 */
Crop a sentence from the type word and checksum.
The type word at the beginning along with the dollar sign ($) will be
removed. If there is a checksum, it will also be removed. The two end
characters (usually ) will not be included in the new string.

sentence is a validated NMEA sentence string.
length is the char length of the sentence string.

Returns pointer (char *) to the new string.
Crop a sentence from the type word and checksum . The type word at the beginning along with the dollar sign ( $ ) will be removed . If there is a checksum it will also be removed . The two end characters ( usually ) will not be included in the new string . sentence is a validated NMEA sentence string . length is the char length of the sentence string . Returns pointer ( char * ) to the new string .
static char *
_crop_sentence(char *sentence, size_t length)
{
	sentence += NMEA_PREFIX_LENGTH + 2;
	return sentence;
}
static char * _crop_sentence ( char * sentence , size_t length ) { sentence += NMEA_PREFIX_LENGTH + 2 ; return sentence ; }
Crop a sentence from the type word and checksum.
Crop a sentence from the type word and checksum .
/* Skip type word, 7 characters (including $ and ,) */ /* Null terminate before end of line/sentence, 2 characters */ //sentence[length - 9] = '\0'; /* Remove checksum, if there is one */ //if ('*' == sentence[length - 12]) { //	sentence[length - 12] = '\0'; //}