GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
unctrl.c File Reference

GIS Library - Handles control characters. More...

#include <stdio.h>
#include <grass/gis.h>
Include dependency graph for unctrl.c:

Go to the source code of this file.

Functions

char * G_unctrl (int c)
 Printable version of control character. More...
 

Detailed Description

GIS Library - Handles control characters.

(C) 2001-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
GRASS GIS Development Team
Date
1999-2006

Definition in file unctrl.c.

Function Documentation

char* G_unctrl ( int  c)

Printable version of control character.

This routine returns a pointer to a string which contains an English-like representation for the character c. This is useful for nonprinting characters, such as control characters. Control characters are represented by ctrl-C, e.g., control A is represented by ctrl-A. 0177 is represented by DEL/RUB. Normal characters remain unchanged.

Parameters
[in]intc
Returns
char * pointer to string containing English-like representation for character c

Definition at line 34 of file unctrl.c.

References buf, and sprintf().