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

 
 

bug #4670: Example 4-3 doesn't work

Submitted by:  Cédric Barboiron <Ced-2>
Submitted on:  Fri 08 Aug 2003 01:26:04 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:26:04 PM UTC, original submission:

patch:

--- guess_my_number.orig.c 2003-08-08 15:26:17.000000000 +0200
+++ guess_my_number.c 2003-08-08 15:22:19.000000000 +0200
@@ -12,13 +12,13 @@
printf("enter your guess: ");
scanf("%d", &guessed_number);

- while (guessed_number != MAGIC_NUMBER);
+ while (guessed_number != MAGIC_NUMBER)
{
printf("enter your guess: ");
scanf("%d", &guessed_number);
}

- printf("you win.\n")
-
+ printf("you win.\n");
+
return 0;
}

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:48:27 PM UTCcoriordanStatusNone=>Fixed
  Assigned toNone=>coriordan
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1