Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

string plus length typemap hack

by patcat88 (Deacon)
on Oct 29, 2011 at 07:38 UTC ( #934562=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    void
    Foo( str )
         char * str
    PPCODE:
         Foo(str, strLen);
    
  2. or download this
    T_STR_AND_LEN
        ".(unshift(@line, (
    ...
            SV * TmpSV = $arg;
            $var = ($type) SvPV( TmpSV , ${\$var}Len);
        };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://934562]
Approved by Corion
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-12-22 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls