SpiderWorks Books
Books for Your Brain. Learn More in Less Time.
Help  |  View Shopping Cart    
Books
Business Essentials
The Xbox 360 Uncloaked
Mac OS X Tech Guides
Automator
Dashboard
Spotlight
Mac Programming
Learn C on the Macintosh
Learn Objective-C on the Macintosh
Cocoa Game Programming Workshop
AppleScript Lab
Danny Goodman's AppleScript Handbook
AppleScripting the Finder
Fun & Games
Puzzability's Puzzle Trifecta
Extras
Customer Downloads
Merchandise
Synergy
Educators
User Groups
Affiliate Program
Link to Us
Resources
About SpiderWorks
News Feed
E-mail Newsletter
Customer FAQ
Contact Us
 
Stay Informed...
For the latest releases and exclusive offers, subscribe to the FREE SpiderWorks E-mail Newsletter or RSS/XML News Feed.
RSSXMLE-News
Learn C on the Macintosh

Errata for
Learn C on the Macintosh

Mac OS X Edition
By Dave Mark

Back to the Main Book Page...

eBook: Page 14

After the publication of this book, Apple changed the filename of the Xcode installer. All references to "Developer.mpkg" should now be "XcodeTools.mpkg" instead.

eBook: Page 22

In the last paragraph in the left column, the accidental reference to "CodeWarrior" should be "Xcode" instead.

eBook: Page 37

In the section "Running hello2," the phrase "Select Build and Run from the Project menu" should read "Select Build and Run from the Build menu."

eBook: Page 50

In the 3rd paragraph in the left column, the words "unsigned" and "signed" should be switched so that the sentence reads: "Wow! A signed 4 byte int can hold values ranging from -2,?47,483,648 to 2,?47,483,647, while an unsigned 4 byte int can hold values from 0 to 4,294,967,295."

eBook: Page 56

In the right column, the following block of text:

What about this line of code:
   myInt = 27 % 6 * 5;
In this case, the * will get evaluated before the %, as if the line of code were written:
   myInt = 27 % (6 * 5);

should read as follows:

What about this line of code:
   myInt = 27 % 6 * 5;
In this case, the % will get evaluated before the *, as if the line of code were written:
   myInt = (27 % 6) * 5;

eBook: Page 79

The last 3 rows in Figure 6.1's Comparative Operators are incorrect. Those last 3 rows should read:

Operator Resolves to 1 if...
== left side is qual to right
<= left side is less than or equal to right
>= left side is greater than or equal to right
< left side is less than right
> left side is greater than right
!= left side is not equal to right

eBook: Page 99

In the last paragraph in the left column, "check back to Figure 6.4" should read "check back to Figure 6.5."

eBook: Page 174

The last paragraph in the blue box (in the left column) should read:

Now, when countWords gets launched, argc will have a value of 2 and argv will contain two array elements. argv[0] is a pointer to a char array containing the string "xxx/countWords" (where xxx is the path to the application) and argv[1] is a pointer to a char array containing the string "myFile.txt". Just thought you might be wondering!

eBook: Page 175

The following line in Exercise 1b:

printf( "The value of myFloat is %d.\n", f );

should read:

printf( "The value of myFloat is %d.\n", myFloat );

eBook: Page 191

In the 2nd paragraph of the blue box (in the right column), the sentence "The three fields total to 103 bytes" should read "The three fields total to 513 bytes."

eBook: Page 204

The code listing at the bottom of the left column should have a +1 added to the 4th and 5th lines, so that the code should read:

struct CDInfo
{
 char rating;
 char artist[ kMaxArtistLength + 1 ];
 char title[ kMaxTitleLength + 1 ];
 struct CDInfo *next;

eBook: Page 235

At the top of the right column, the last 3 column headers in the title bar of Figure 10.3 should include a trailing plus sign and should read:

Mode Rules "r" "w" "a" "r+" "w+" "a+"

eBook: Page 239

In the middle fo the left column, the following 2 lines of code:

result = fgets( line, kMaxLineLength, stdin );
line[ strlen( line ) - 1 ] = '\0';

should read as follows:

result = fgets( line, kMaxLineLength, stdin );
if ( strlen( line ) <= 1 )
      return false;
line[ strlen( line ) - 1 ] = '\0';

eBook: Pages 251-252

On these 2 pages, all 7 occurrences of "myUnion" should be "myNumber" instead.

eBook: Page 254

In the 2nd sentence in the right column, "step through each of the even integers" should read "step through each of the odd integers."

eBook: Page 261

At the top of the left column, the phrase "The tree would have no left children" should read "The root would have no left children."

eBook: Page 270

In the blue box in the left column, the 2nd line of code:

value - (value < 0) ? (-value) : (value);

should read as follows:

value = (value < 0) ? (-value) : (value);

 
Back to the Main Book Page...

Buy Online

eBook $14.95
Add eBook to Cart

Free Preview
Download Preview

 

Love Puzzles?
Treat yourself to Puzzle Trifecta -- 100 of the best interactive puzzles from Puzzability!

FREE Preview...

Home  |  Terms & Conditions  |  Privacy Policy  |  Contact Us

 
Copyright © 2005-2008 SpiderWorks, LLC. All rights reserved. All prices are listed in U.S. dollars.