GRASS Programmer's Manual
6.4.4(2014)-r
Main Page
Related Pages
Namespaces
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
int
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
50
return
0;
51
}
TAB
#define TAB
Definition:
ascii_chk.c:20
G_ascii_check
int G_ascii_check(char *string)
Removes non-ascii characters from buffer.
Definition:
ascii_chk.c:34
SPACE
#define SPACE
Definition:
ascii_chk.c:21
lib
gis
ascii_chk.c
Generated on Wed Mar 18 2015 05:21:39 for GRASS Programmer's Manual by
1.8.9.1