bugBook: Learning GNU C - Bugs: bug #4672, Example 4-8 doesn't work

 
 

bug #4672: Example 4-8 doesn't work

Submitted by:  Cédric Barboiron <Ced-2>
Submitted on:  Fri 08 Aug 2003 01:35:15 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ciarán O Riordan <coriordan>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 08 Aug 2003 01:35:15 PM UTC, original submission:

(i used int as it is the spirit of book)
patch:

--- apples.orig.c 2003-08-08 15:35:40.000000000 +0200
+++ apples.c 2003-08-08 15:34:55.000000000 +0200
@@ -3,7 +3,7 @@
int
main()
{
- apples = 6;
+ int apples = 6;

printf("I have %d apple%s\n", apples, (apples == 1) ? "" : "s");

Cédric Barboiron <Ced-2>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 02 Dec 2003 09:51:02 PM UTCcoriordanStatusNone=>Fixed
  Assigned toNone=>coriordan
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1