/****************************************************************
 *	Module name  :	allchars.c                              *
 *	Purpose      :	prints the values 0-255 in all bases    *
 *	Created      :	??-??-89				* 
 *	Last edited  : 	24-08-89		Version 1.0	*
 * 	Copyright    :	G R Buckeridge				*
 ****************************************************************/


#include stdio.h

main()

	{
	int i;
	
	for(i=0;i<64;i++)
		{
		conv(i);
		putchar('\t');
		conv(i+64);
		putchar('\t');
		conv(i+128);
		putchar('\t');
		conv(i+192);
		putchar('\n');

		}
	}		

void conv(n)
int n;
	{
	printf("%3u  %2x  %3o  '",n,n,n);
	if(n<32)
		printf("^%c'",n+64);
	else 
		printf("%c'",n);
	}

	

#include ?stdio.lib

f("%3u  %2x 