QGIS API Documentation  2.99.0-Master (19b062c)
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,...)
 Formatting string (like standard printf) with CRC tail (*CRC) More...
 
int nmea_scanf (const char *buff, int buff_sz, const char *format,...)
 Analyze string (specificate for NMEA sentences) More...
 

Function Documentation

◆ nmea_atof()

double nmea_atof ( const char *  str,
int  str_sz 
)

Convert string to fraction number.

Definition at line 88 of file tok.c.

◆ nmea_atoi()

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

Convert string to number.

Definition at line 69 of file tok.c.

◆ nmea_calc_crc()

int nmea_calc_crc ( const char *  buff,
int  buff_sz 
)

Calculate control sum of binary buffer.

Definition at line 55 of file tok.c.

◆ nmea_printf()

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

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

Definition at line 111 of file tok.c.

◆ nmea_scanf()

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

Analyze string (specificate for NMEA sentences)

Definition at line 146 of file tok.c.