On Fri, 6 Aug 1999, Don Lewis wrote:

> On Aug 6,  3:29pm, Sheldon Hearn wrote:
> } Subject: quad_t and portability
> } 
> } Hi folks,
> } 
> } I want to patch wc(1) so that it uses quad_t instead of u_long. This is
> } necessary if wc(1) is to produce sensible results for files containing
> } more than 4GB of data.
> 
> Why not off_t, which should be portable and scale properly with the
> maximum system file size.  Then the only problem is figuring a portable
> means of printing the result ...
> 

You can always use off_t with "%qd", (int64_t)foo.

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 gr...@freebsd.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to