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

GIS Library - String white space removal functions. More...

#include <ctype.h>
#include <string.h>
#include <grass/gis.h>
Include dependency graph for squeeze.c:

Go to the source code of this file.

Functions

char * G_squeeze (char *line)
 Remove superfluous white space. More...
 

Detailed Description

GIS Library - String white space removal 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
1998-2008

Definition in file squeeze.c.

Function Documentation

char* G_squeeze ( char *  line)

Remove superfluous white space.

Leading and trailing white space is removed from the string line and internal white space which is more than one character is reduced to a single space character. White space here means spaces, tabs, linefeeds, newlines, and formfeeds.

Parameters
[in,out]line
Returns
Pointer to line

Definition at line 45 of file squeeze.c.

References l.

Referenced by E_edit_cellhd(), G_get_raster_sample_bilinear(), G_get_raster_sample_cubic(), G_get_raster_sample_nearest(), and make_location().