DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T b

⟦58c678b27⟧ TextFile

    Length: 721 (0x2d1)
    Types: TextFile
    Names: »bin2hex.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z« 
        └─⟦e5a54fb17⟧ 
            └─⟦this⟧ »pp-5.0/Tools/bin2hex/bin2hex.c« 

TextFile

/* bin2hex: Converts a binary file to hex */

# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Tools/bin2hex/RCS/bin2hex.c,v 5.0 90/09/20 16:24:12 pp Exp Locker: pp $";
# endif

/*
 * $Header: /cs/research/pp/hubris/pp-beta/Tools/bin2hex/RCS/bin2hex.c,v 5.0 90/09/20 16:24:12 pp Exp Locker: pp $
 *
 * $Log:	bin2hex.c,v $
 * Revision 5.0  90/09/20  16:24:12  pp
 * rcsforce : 5.0 public release
 * 
 */



#include <stdio.h>




/* ---------------------  Begin  Routines  -------------------------------- */


main()
{
	int zone, fold;

	fold = 0;

	while ((zone = getchar()) != EOF) {

		fold += 3;

		if (fold > 80) {
			printf ("\n");
			fold = 3;
		}

		printf ("%02x ", zone);	
	}

}