in reply to help with XS (Newx and
Without testing it and actually going from the perlapi documentation for Newxz, the following should give you an allocated buffer, filled with zeroes:
AirLorconDriver * l_packet; Newxz( l_packet, 1, AirLorconDriver); /* Remember to use SafeFree() to release the memory pointed to by l_pa +cket */
Update: Also see perlguts for more discussion of Newx() and friends
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help with XS (Newx and
by Bpl (Scribe) on Sep 05, 2020 at 19:23 UTC | |
by Corion (Patriarch) on Sep 05, 2020 at 19:40 UTC |