GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-9f2952cf23
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.


#define TAB   011
#define SPACE   040


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

Detailed Description

GIS Library - Remove non-ascii characters.

(C) 2001-2014 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.

GRASS GIS Development Team

Definition in file ascii_chk.c.

Macro Definition Documentation


#define SPACE   040

Definition at line 19 of file ascii_chk.c.


#define TAB   011

Definition at line 18 of file ascii_chk.c.

Function Documentation

◆ G_ascii_check()

void 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.

[in,out]stringbuffer to have non-ascii characters removed

Definition at line 31 of file ascii_chk.c.

References SPACE, and TAB.

Referenced by Rast__read_history().