Subject: Re: printf formats again
To: Greg A. Woods <email@example.com>
From: Chris G Demetriou <Chris_G_Demetriou@ux2.sp.cs.cmu.edu>
Date: 11/17/1996 19:49:10
> Maybe, but I'd personally far prefer something like
> printf("%B*", sizeof(off_t), (off_t) foo);
> This should solve the problem for user-supplied types too.
I like this idea, a lot better than anything that involves having
printf parse the strings looking for type names and then switching
based on the type. That's just too inflexible.
It'd sort of be nice to have a way to hard-code the size in the format
string, so you wouldn't need to have to pass it as an argument, but
hey, this'd be pretty good.