File:  [MW Coherent from dump] / coherent / d / bin / cc / c / common / makvar.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Given a pointer to an argv entry, parse the variants into
 * the array of characters.
 */
#ifdef	vax
#include	"INC$LIB:var.h"
#else
#include "var.h"
#endif


makvariant(p)
register char *p;
{
	register int i, j;
	unsigned int u;
	static char digit[] = "0123456789ABCDEF";

	for (i = 0; i < VMAXIM/VGRANU; i += 1) {
		for (j = 4; j >= 0; j -= 4) {
			u = (variant[i] >> j) & 0xF;
			*p++ = digit[u];
		}
	}
	*p = 0;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.