Blame NEW/samples

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