75 #define UCHAR(cp) ((unsigned char *) (cp))
76 #define ISOCTAL(ch) (ISDIGIT(ch) && (ch) != '8' && (ch) != '9')
80 while ((ch = *
UCHAR(data++)) != 0) {
82 if ((ch = *
UCHAR(data++)) == 0)
114 for (oval = ch -
'0', i = 0;
117 oval = (oval << 3) | (ch -
'0');
146 }
else if (ch ==
'\a') {
149 }
else if (ch ==
'\b') {
152 }
else if (ch ==
'\f') {
155 }
else if (ch ==
'\n') {
158 }
else if (ch ==
'\r') {
161 }
else if (ch ==
'\t') {
164 }
else if (ch ==
'\v') {
182 int main(
int argc,
char **argv)
188 if (argc > 2 || (argc > 1 && (un_escape = strcmp(argv[1],
"-e"))) != 0)
189 msg_fatal(
"usage: %s [-e (escape)]", argv[0]);
#define vstring_fgets_nonl(s, p)
int main(int argc, char **argv)
VSTRING * unescape(VSTRING *result, const char *data)
#define VSTRING_TERMINATE(vp)
#define VSTRING_ADDCH(vp, ch)
VSTRING * vstring_sprintf_append(VSTRING *vp, const char *format,...)
#define VSTRING_RESET(vp)
VSTRING * vstring_alloc(ssize_t len)
NORETURN msg_fatal(const char *fmt,...)
int vstream_fflush(VSTREAM *stream)
VSTRING * escape(VSTRING *result, const char *data, ssize_t len)
#define vstream_fwrite(v, b, n)
#define VSTREAM_PUTC(ch, vp)
VSTRING * vstring_strcat(VSTRING *vp, const char *src)