GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
}
lib
gis
ascii_chk.c
Generated on Wed Jun 6 2012 14:04:19 for GRASS Programmer's Manual by
1.8.1