GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
V_trim_dec.c File Reference

Display trim functions. More...

#include <grass/vask.h>
Include dependency graph for V_trim_dec.c:

Go to the source code of this file.

Functions

void V__trim_decimal (char *buf)
 Remove trailing zeros from decimal number. More...
 

Detailed Description

Display trim functions.

(C) 1999-2009 by the GRASS Development Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Author
GRASS GIS Development Team
Date
1999-2009

Definition in file V_trim_dec.c.

Function Documentation

int V__trim_decimal ( char *  buf)

Remove trailing zeros from decimal number.

For example: 23.45000 would return 23.45.

Parameters
[in,out]buf
Returns
always returns 0

Definition at line 42 of file V_trim_dec.c.

References buf.