SDL keeps stopping my console from printing
-
3DModelerMan
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
SDL keeps stopping my console from printing
How can I actually stop SDL from diverting my entire log to stdout.txt instead of the console window?. Any quick hackish fixes?.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
maybe try this
Code: Select all
freopen ("log.txt","w",stdout);
-
3DModelerMan
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
nope
Nop did'nt work.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
sorry i missunderstood you
if you want redirect it back to console try something like that
if you want redirect it back to console try something like that
Code: Select all
#include<stdio.h>
main()
{
freopen("stdout.txt", "w", stdout);
printf("file\n");
fclose(stdout);
fdopen(2,"w");
printf("console\n");
}
-
3DModelerMan
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
thanks
Thanks for the help.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar