Re: Strange behaviour with printf vs. g_print (Repost)
- From: "Peter \"Firefly\" Lund" <firefly diku dk>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Strange behaviour with printf vs. g_print (Repost)
- Date: Tue, 20 Aug 2002 21:00:08 +0200 (MEST)
On Tue, 20 Aug 2002, Tristan Van Berkom wrote:
library and call a function that will use one of the g_print routines
.... the
application's standard printf fprintf etc functions won't work.
this is strange because if I do something like this:
void main() {
while (1) {
g_print("gprint\n");
printf("printf\n");
g_warning("g_warning");
g_message("g_message");
fprintf(stderr, "fprintf\n");
}
}
The standard printf functions still work.
Do you have a flushing problem, perhaps?
(see if something like fflush(stdout) placed strategically will change the
output)
-Peter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]