Jump to content



Photo

Possible Error In The Book

chapter 7

  • Please log in to reply
2 replies to this topic

#1 Necuima

Necuima

    Advanced Member

  • Members
  • PipPipPip
  • 233 posts
  • LocationSunshine Coast, Queensland, Australia

Posted 21 February 2015 - 12:25 AM

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.

 

 

 

 


  • 0

#2 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4698 posts
  • LocationState College, PA (USA)

Posted 23 February 2015 - 9:24 AM

Thanks for the interest in the book. I'll check this out and confirm what's what. Cheers!


  • 0

#3 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4698 posts
  • LocationState College, PA (USA)

Posted 8 February 2016 - 1:07 PM

(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!


  • 0





Also tagged with one or more of these keywords: chapter 7