Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Sat, 12 Nov 1988 04:54
strange behavior with stdio in g++ 1.27
Author: "Douglas C. Schmidt"
Date: Sat, 12 Nov 1988 04:54
Date: Sat, 12 Nov 1988 04:54
26 lines
981 bytes
981 bytes
Hi,
I'm not sure if this is a g++ bug or a libg++ bug, or a sparc bug,
but in any case, the following program doesn't print anything out
to the screen. However, if a newline is added, then the line is printed
out. This is g++ 1.27, running on a sun 4.
----------------------------------------
#include <stdio.h>
void foo ( char *buf ) {
while ( *buf ) {
printf ( "%c",*buf );
buf++;
}
}
main () {
foo ( "this line won't print!" );
}
----------------------------------------
thanks,
Doug
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads