www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000191

When Created: 11/25/1997 10:28:36
Against DJGPP version: 2.01
By whom: Daniel.Horchner@95.Student.WAU.NL
Abstract: Strange bug in printf; Nothing is printed until the first newline char.
// Strange bug in printf; Nothing is printed until the first newline char.
#include <stdio.h>
#include <conio.h>

void main()
{
  printf("Hello, ");    // Nothing is printed.
  printf("world");      // Still nothing...
  putch('!');           // '!' on screen.
  puts("");             // "Hello, world" on screen.
}                       // Overal: "!Hello, world" instead of "Hello, world!"

Note added: 11/25/1997 15:14:44
By whom: broeker@physik.rwth-aachen.de
Still no bug, 2 minutes after you sent this the first time :-)

(i.e.: see question 190 instead...)

Closed on 04/12/1999 10:00:25: Not a bug: stdout is line-buffered.
By whom: eliz@is.elta.co.il



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010