unctrl.c

Go to the documentation of this file.
00001 #include "gis.h"
00002 
00016 char *
00017 G_unctrl(c)
00018     unsigned char c;
00019 {
00020     static char buf[20];
00021 
00022     if (c < ' ')
00023         sprintf (buf, "ctrl-%c", c|0100);
00024     else if (c < 0177)
00025         sprintf(buf, "%c", c);
00026     else if (c == 0177)
00027         sprintf (buf, "DEL/RUB");
00028     else
00029         sprintf (buf, "Mctrl-%c", (c&77)|0100);
00030     return buf;
00031 }

Generated on Mon Jan 1 19:49:26 2007 for GRASS by  doxygen 1.5.1