/* $OpenBSD: vis_test.c,v 1.2 2009/06/21 00:38:22 martynas Exp $ */ /* Public domain. 2005, Otto Moerbeek */ #include #include #include #include int main() { char inp[UCHAR_MAX + 1]; char out[4 * UCHAR_MAX + 1]; int i; for (i = 0; i <= UCHAR_MAX; i++) { inp[i] = i; } strvisx(out, inp, UCHAR_MAX + 1, 0); printf("%s\n", out); exit(0); }