doc/GPRS_GPS_Example_Code.c
int readLine(char * result)
{
	int lineFeedFound =FALSE;
	int crfound = FALSE;
	int i = 0;
	char c;

	while ((lineFeedFound==FALSE) && (i < 128)) {

		if (read(fd,&c,1) > 0) {

			result[i++] = c;

			if (c == 10) {
				result[i++]=0;
				lineFeedFound = TRUE;
			}
		}
	}
	return i;
}
/*
 * Reads one complete line from GPS serial port
 */
Reads one complete line from GPS serial port
Reads one complete line from GPS serial port
int readLine(char * result)
{
	int lineFeedFound =FALSE;
	int crfound = FALSE;
	int i = 0;
	char c;
	while ((lineFeedFound==FALSE) && (i < 128)) {
		if (read(fd,&c,1) > 0) {
			result[i++] = c;
			if (c == 10) {
				result[i++]=0;
				lineFeedFound = TRUE;
			}
		}
	}
	return i;
}
int readLine ( char * result ) { int lineFeedFound = FALSE ; int crfound = FALSE ; int i = 0 ; char c ; while ( ( lineFeedFound == FALSE ) && ( i < 128 ) ) { if ( read ( fd , & c , 1 ) > 0 ) { result [ i ++ ] = c ; if ( c == 10 ) { result [ i ++ ] = 0 ; lineFeedFound = TRUE ; } } } return i ; }
Reads one complete line from GPS serial port
Reads one complete line from GPS serial port