trim_dec.c File Reference

#include "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 Mon Jan 1 19:49:42 2007 for GRASS by  doxygen 1.5.1