ftp.nice.ch/pub/next/unix/text/allchars.NIHS.bs.tar.gz#/allchars/allchars.c

This is allchars.c in view mode; [Download] [Up]

/* Make a text file containing ALL the possible characters
*/
char	Label[]	= "  0 1 2 3 4 5 6 7 8 9 A B C D E F\n";

main(int argc, char *argv[])
{
	unsigned char buf[2];
	int i, j;

	if (argc > 1)
	    write(1, Label, sizeof Label);
	buf[0] = ' ';
	for (j = 0; j < 16; j++) {
	    if (argc > 1)
		write(1, Label + j + j + 2, 1);
	    for (i = 0; i < 16; i++) {
		buf[1] = (j << 4) | i;
		write(1, buf, 2);
	    }
	    if (argc > 1)
		write(1, Label + j + j + 1, 2);
	    write(1, "\n", 1);
	}
	if (argc > 1)
	    write(1, Label, sizeof Label);
	exit(0);
}



These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.