in reply to [OT]: Flushing XS buffers portably
Check out perlapio ... you shouldn't be using stdio for printing but perl's IO abstraction interface:
use warnings; use Inline C => <<'EOC'; void foo() { PerlIO_printf(PerlIO_stdout(),"HELLO"); } EOC for(1..3) { foo(); print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [OT]: Flushing XS buffers portably
by syphilis (Archbishop) on Aug 31, 2007 at 13:46 UTC | |
by almut (Canon) on Aug 31, 2007 at 14:04 UTC | |
by syphilis (Archbishop) on Aug 31, 2007 at 14:18 UTC | |
by almut (Canon) on Aug 31, 2007 at 14:38 UTC | |
by syphilis (Archbishop) on Aug 31, 2007 at 15:22 UTC |