GRASS GIS 7 Programmer's Manual
7.0.4(2016)-r00000
Main Page
Related Pages
Data Structures
Files
File List
Globals
ascii_chk.c
Go to the documentation of this file.
1
17
#include <grass/gis.h>
18
19
20
#define TAB 011
21
#define SPACE 040
22
23
34
void
G_ascii_check
(
char
*
string
)
35
{
36
char
*ptr1, *ptr2;
37
38
ptr1 = string;
39
ptr2 = string;
40
41
while
(*ptr1) {
42
if
((*ptr1 >= 040) && (*ptr1 <= 0176))
43
*ptr2++ = *ptr1;
44
else
if
(*ptr1 ==
TAB
)
45
*ptr2++ =
SPACE
;
46
ptr1++;
47
}
48
*ptr2 = 0;
49
}
TAB
#define TAB
Definition:
ascii_chk.c:20
G_ascii_check
void G_ascii_check(char *string)
Removes non-ascii characters from buffer.
Definition:
ascii_chk.c:34
SPACE
#define SPACE
Definition:
ascii_chk.c:21
gis
ascii_chk.c
Generated on Sun May 1 2016 14:09:45 for GRASS GIS 7 Programmer's Manual by
1.8.11