GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ascii_chk.c File Reference

GIS Library - Remove non-ascii characters. More...

#include <grass/gis.h>
Include dependency graph for ascii_chk.c:

Go to the source code of this file.

Macros

#define TAB   011
#define SPACE   040

Functions

int G_ascii_check (char *string)
 Removes non-ascii characters from buffer.

Detailed Description

GIS Library - Remove non-ascii characters.

(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 ascii_chk.c.


Macro Definition Documentation

#define SPACE   040

Definition at line 21 of file ascii_chk.c.

Referenced by G_ascii_check().

#define TAB   011

Definition at line 20 of file ascii_chk.c.

Referenced by G_ascii_check().


Function Documentation

int G_ascii_check ( char *  string)

Removes non-ascii characters from buffer.

Updates string with non_ascii characters removed, except for tabs, which are turned into spaces.

Parameters:
[in,out]stringbuffer to have non-ascii characters removed
Returns:
always returns 0

Definition at line 34 of file ascii_chk.c.

References SPACE, and TAB.

Referenced by G3d_readHistory(), and G_read_history().