QGIS API Documentation  2.99.0-Master (08ee180)
Functions
tok.h File Reference
#include "config.h"
#include "stdlib.h"
Include dependency graph for tok.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double nmea_atof (const char *str, int str_sz)
 Convert string to fraction number. More...
 
int nmea_atoi (const char *str, size_t str_sz, int radix)
 Convert string to number. More...
 
int nmea_calc_crc (const char *buff, int buff_sz)
 Calculate control sum of binary buffer. More...
 
int nmea_printf (char *buff, int buff_sz, const char *format,...)
 Formating string (like standard printf) with CRC tail (*CRC) More...
 
int nmea_scanf (const char *buff, int buff_sz, const char *format,...)
 Analyse string (specificate for NMEA sentences) More...
 

Function Documentation

double nmea_atof ( const char *  str,
int  str_sz 
)

Convert string to fraction number.

Definition at line 80 of file tok.c.

int nmea_atoi ( const char *  str,
size_t  str_sz,
int  radix 
)

Convert string to number.

Definition at line 61 of file tok.c.

int nmea_calc_crc ( const char *  buff,
int  buff_sz 
)

Calculate control sum of binary buffer.

Definition at line 47 of file tok.c.

int nmea_printf ( char *  buff,
int  buff_sz,
const char *  format,
  ... 
)

Formating string (like standard printf) with CRC tail (*CRC)

Definition at line 103 of file tok.c.

int nmea_scanf ( const char *  buff,
int  buff_sz,
const char *  format,
  ... 
)

Analyse string (specificate for NMEA sentences)

Definition at line 138 of file tok.c.