in reply to Using stderr from Inline::C: (part deux)
Does that also work for you ? Is it acceptable ? (IIRC, you're not a big fan of the perlio layer.)#!perl -w use warnings; use strict; use Inline C => Config => USING => 'ParseRegExp', BUILD_NOISY => 1; use Inline C => <<'EOC'; void foo(char * x, int y) { PerlIO_write(PerlIO_stderr(), x, y); } EOC my $str = "hello world\n"; foo($str, length($str)); foo($str, 8); __END__ Outputs: hello world hello wo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using stderr from Inline::C: (part deux)
by BrowserUk (Patriarch) on May 23, 2013 at 12:05 UTC | |
by syphilis (Archbishop) on May 23, 2013 at 12:23 UTC | |
by BrowserUk (Patriarch) on May 23, 2013 at 22:31 UTC | |
by syphilis (Archbishop) on May 24, 2013 at 00:29 UTC |