RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions
vis.h File Reference
#include <sys/types.h>
#include <sys/cdefs.h>
Include dependency graph for vis.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VIS_OCTAL   0x01 /* use octal \ddd format */
 
#define VIS_CSTYLE   0x02 /* use \[nrft0..] where appropiate */
 
#define VIS_SP   0x04 /* also encode space */
 
#define VIS_TAB   0x08 /* also encode tab */
 
#define VIS_NL   0x10 /* also encode newline */
 
#define VIS_WHITE   (VIS_SP | VIS_TAB | VIS_NL)
 
#define VIS_SAFE   0x20 /* only encode "unsafe" characters */
 
#define VIS_NOSLASH   0x40 /* inhibit printing '\' */
 
#define VIS_HTTPSTYLE   0x80 /* http-style escape % HEX HEX */
 
#define UNVIS_VALID   1 /* character valid */
 
#define UNVIS_VALIDPUSH   2 /* character valid, push back passed char */
 
#define UNVIS_NOCHAR   3 /* valid sequence, no character produced */
 
#define UNVIS_SYNBAD   -1 /* unrecognized escape sequence */
 
#define UNVIS_ERROR   -2 /* decoder in unknown state (unrecoverable) */
 
#define UNVIS_END   1 /* no more characters */
 

Functions

__BEGIN_DECLS char * vis (char *, int, int, int)
 
char * svis (char *, int, int, int, const char *)
 
int strvis (char *, const char *, int)
 
int strsvis (char *, const char *, int, const char *)
 
int strvisx (char *, const char *, size_t, int)
 
int strsvisx (char *, const char *, size_t, int, const char *)
 
int strunvis (char *, const char *)
 
int strunvisx (char *, const char *, int)