in reply to XS Prepending space to an SVs PV
also, search for SvCUR in perldoc perlgutsYou can get and set the current length of the string stored in an +SV with the following macros: SvCUR(SV*) SvCUR_set(SV*, I32 val) You can also get a pointer to the end of the string stored in the +SV with the macro: SvEND(SV*) But note that these last three macros are valid only if "SvPOK()" +is true.
And, if all else fails, one can always do RTFS :):):)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XS Prepending space to an SVs PV
by BrowserUk (Patriarch) on Apr 26, 2006 at 11:24 UTC | |
by vkon (Curate) on Apr 26, 2006 at 16:20 UTC |