GRASS Programmer's Manual
6.4.4(2014)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
unctrl.c
Go to the documentation of this file.
1
17
#include <stdio.h>
18
#include <grass/gis.h>
19
20
34
char
*
G_unctrl
(
int
c)
35
{
36
static
char
buf[20];
37
38
if
(c <
' '
)
39
sprintf(buf,
"ctrl-%c"
, c | 0100);
40
else
if
(c < 0177)
41
sprintf(buf,
"%c"
, c);
42
else
if
(c == 0177)
43
sprintf(buf,
"DEL/RUB"
);
44
else
45
sprintf(buf,
"Mctrl-%c"
, (c & 77) | 0100);
46
47
return
buf;
48
}
G_unctrl
char * G_unctrl(int c)
Printable version of control character.
Definition:
unctrl.c:34
lib
gis
unctrl.c
Generated on Fri Sep 5 2014 08:29:38 for GRASS Programmer's Manual by
1.8.8