Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
Necuima

Possible Error In The Book

Recommended Posts

Hi Larry,

 

Well your C book finally arrived down here in the antipodes:-)  And I'm enjoying going through it a lot.  It is helping to clarify some mis-conceptions that I had.

 

On page 146, the first line in fact, you have a signifier %lu but the downloaded code has %llu. Is this a minor errata or am I seeing double??

 

I checked the book errata but it's not there.

 

Thanks again for a great book.

 

Cheers from Oz.

 

 

 

 

Share this post


Link to post
Share on other sites

(Finally clearing up threads that I've been "watching" for wwwwwaaaaaaayyyyy too long, but for posterity...) %lu is more generally safe across platforms. Not all platforms support %llu (unsigned long long). I'll correct the downloadable code. 

 

There is a trick to doing the universal-right thing but that's a pretty involved change for this point in the book!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...