NMEA-0183國外開源庫源代碼分析-tok.h

/*
 * This file is part of nmealib.
 *
 * Copyright (c) 2008 Timur Sinitsyn
 * Copyright (c) 2011 Ferry Huberts
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __NMEA_TOK_H__
#define __NMEA_TOK_H__

#ifdef  __cplusplus
extern "C" {
#endif

int nmea_calc_crc(const char *buff, int buff_sz);    //crc校驗
int nmea_atoi(const char *str, int str_sz, int radix);   //字符整數轉換函數
double nmea_atof(const char *str, int str_sz);    //字符到浮點數轉換函數
int nmea_printf(char *buff, int buff_sz, const char *format, ...) __attribute__ ((format(printf, 3, 4)));    //printf
int nmea_scanf(const char *buff, int buff_sz, const char *format, ...);    //scantf 

#ifdef  __cplusplus
}
#endif

#endif /* __NMEA_TOK_H__ */

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章