Blame NEW/samples

Packit 6f02de
char *
Packit 6f02de
print_off(lf, ty)
Packit 6f02de
	struct lfile *lf;		/* file whose size is to be printed */
Packit 6f02de
	int ty;				/* format type: 0 == 0t<decimal>
Packit 6f02de
					 *		1 == 0x<hexadecimal> */
Packit 6f02de
{
Packit 6f02de
	static buf[128];
Packit 6f02de
Packit 6f02de
	if (!ty)
Packit 6f02de
	    (void) sprintf(buf, SzOffFmt_0t, lf->off);
Packit 6f02de
	else 
Packit 6f02de
	    (void) sprintf(buf, SzOffFmt_x, lf->off);
Packit 6f02de
	return(buf);
Packit 6f02de
Packit 6f02de
}
Packit 6f02de
Packit 6f02de
Packit 6f02de
char *
Packit 6f02de
print_sz(lf)
Packit 6f02de
	struct lfile *lf;		/* file whose size is to be printed */
Packit 6f02de
{
Packit 6f02de
	static buf[128];
Packit 6f02de
Packit 6f02de
	(void) sprintf(buf, SzOffFmt_d, lf->sz);
Packit 6f02de
	return(buf);
Packit 6f02de
}