实现基于输入的筛选条件,自定义格式化输出信息
#ifndef _PRINTOUT_H_
#define _PRINTOUT_H_
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include"Type.h"
/******************************************************************************
* Function - Printout analyse message
*
* Purpose - 格式输出解析信息
*
* Description -
*
* modification history
* ----------------------------------------
* v1.0 , 2018-12-12, LynxZhang written
* ----------------------------------------
******************************************************************************/
void printout(Nmea_msg *res, int s_n,FILE *fp)
{
int k;
static int serial = 0;/*输出序号计数*/
char node1[3];
char node2[3];
char temp[85]=" ";
char a[]="[";
char b[]="]";
char c[]=" ";
serial++;
fprintf(fp,"%d %d-%d-%d %d:%d:%d %c %f %