Branch data Line data Source code
1 : : /* 2 : : * Copyright Tim (xtimor@gmail.com) 3 : : * 4 : : * NMEA library is free software; you can redistribute it and/or modify 5 : : * it under the terms of the GNU Lesser General Public License as published by 6 : : * the Free Software Foundation; either version 2 of the License, or 7 : : * (at your option) any later version. 8 : : * 9 : : * This program is distributed in the hope that it will be useful, 10 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 : : * GNU Lesser General Public License for more details. 13 : : * 14 : : * You should have received a copy of the GNU Lesser General Public License 15 : : * along with this program. If not, see <http://www.gnu.org/licenses/> 16 : : */ 17 : : /* 18 : : * 19 : : * NMEA library 20 : : * URL: http://nmea.sourceforge.net 21 : : * Author: Tim (xtimor@gmail.com) 22 : : * Licence: http://www.gnu.org/licenses/lgpl.html 23 : : * $Id: info.c 17 2008-03-11 11:56:11Z xtimor $ 24 : : * 25 : : */ 26 : : 27 : : #include <string.h> 28 : : 29 : : #include "info.h" 30 : : 31 : 0 : void nmea_zero_INFO( nmeaINFO *info ) 32 : : { 33 : 0 : memset( info, 0, sizeof( nmeaINFO ) ); 34 : 0 : nmea_time_now( &info->utc ); 35 : 0 : info->sig = NMEA_SIG_BAD; 36 : 0 : info->fix = NMEA_FIX_BAD; 37 : 0 : }