trim_dec.c File Reference

GIS Library - Trim string decimal functions. More...

#include <string.h>
#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)
 Removes trailing zeros from decimal number.

Detailed Description

GIS Library - Trim string decimal functions.

(C) 2001-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author:
GRASS GIS Development Team
Date:
1999-2008

Definition in file trim_dec.c.


Function Documentation

int G_trim_decimal ( char *  buf  ) 

Removes trailing zeros from decimal number.

Example: 23.45000 would come back as 23.45

Parameters:
[in,out] buf 
Returns:
always returns 0

Definition at line 30 of file trim_dec.c.

Referenced by G__write_cats().

Generated on Tue Apr 6 13:27:52 2010 for GRASS Programmer's Manual by  doxygen 1.6.3