trim_dec.c File Reference

#include <grass/gis.h>

Include dependency graph for trim_dec.c:

Go to the source code of this file.

Functions

int G_trim_decimal (char *buf)
 trim


Function Documentation

int G_trim_decimal ( char *  buf  ) 

trim

this routine remove trailing zeros from decimal number for example: 23.45000 would come back as 23.45

Parameters:
buf 
Returns:
int

Definition at line 16 of file trim_dec.c.

Referenced by G__write_cats().


Generated on Sun Apr 6 17:32:26 2008 for GRASS by  doxygen 1.5.5