GPS4Palm

Source Code Documentation


fp.c File Reference

#include "fp.h"
#include <Unix/sys_types.h>
#include "stringil.h"

Include dependency graph for fp.c:

Go to the source code of this file.

Defines

#define StrChr(x, y)   strchr(x,y)
#define StrCopy(x, y)   strcpy(x,y)
#define StrLen(x)   strlen(x)

Functions

double cvt_atof (char *strP, char **trailP, short *fracP)
 Convert string to a double precision floating point value.
void format_number (double value, short frac, char *strP)
 Format a double precision floating point value into a string.


Define Documentation

#define StrChr x,
 )     strchr(x,y)
 

Definition at line 48 of file fp.c.

#define StrCopy x,
 )     strcpy(x,y)
 

Definition at line 49 of file fp.c.

Referenced by deg_to_d_str(), deg_to_dm_str(), deg_to_dms_str(), deg_to_str(), fopen(), getdir_vfs(), HandleMessage(), MapFormHandleEvent(), NavigationFormHandleEvent(), search_map(), SetFieldText(), SetFieldTextFromStr(), TrackIdent(), UnpackWaypoint(), and WayptEditFormHandleEvent().

#define StrLen  )     strlen(x)
 

Definition at line 50 of file fp.c.

Referenced by deg_to_d_str(), deg_to_dm_str(), deg_to_dms_str(), dobitmap(), FileSelFormHandleEvent(), fopen(), getdir(), getdir_vfs(), HandleMessage(), importGeoDBLocation(), MapFormHandleEvent(), noMap(), PackWaypoint(), Position2Clipboard(), Position2Geodb(), SetFieldText(), SetFieldTextFromStr(), TrackDBName(), TrackFormHandleEvent(), TrackIdent(), and WayptEditFormHandleEvent().


Function Documentation

double cvt_atof char *  strP,
char **  trailP,
short *  fracP
 

Convert string to a double precision floating point value.

Parameters:
strP string to convert
trailP pointer to remaining, unconverted part of string
fracP if not null, return number of fractional digits
Returns:
double precision floating point value

Definition at line 203 of file fp.c.

Referenced by HandleMessage().

void format_number double  value,
short  frac,
char *  strP
 

Format a double precision floating point value into a string.

Parameters:
value value to format
frac number of fractional digits
strP pointer to destination string buffer

Definition at line 265 of file fp.c.

Referenced by ApproachFormHandleEvent(), deg_to_str(), HandleMessage(), NavigationFormHandleEvent(), WaypointFormHandleEvent(), and WayptEditFormHandleEvent().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke