test.c

来自「无限网卡测试工具」· C语言 代码 · 共 24 行

C
24
字号
#include <gpgll.h>#include <stdio.h>#include "serial.h"#include "sentences.h"int main(void) {  gps_gpgll * x = gps_gpgll_new();  int fd;//  parse_gpgll("$GPGLL, 3751.65, S, 14507.36, E*77", x);  fd = gps_serial_open("/dev/ttyS0");  {    char buf[1024];    gps_find_sentence(GPGLL, buf, fd);    parse_gpgll(buf, x);  }  gps_gpgll_delete(&x);  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?