But since we dont know for sure the size of the string (I dont think it's possible in C to know the size of an allocated pointer), it wont work.
Daniel > -----Original Message----- > From: Vivek Dasmohapatra [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 3:04 PM > To: Daniel Shane > Cc: [EMAIL PROTECTED] > Subject: RE: How to malloc a char ** from C to Perl (btw, $! > now works, > t hank > > > On Mon, 21 Jan 2002, Daniel Shane wrote: > > [cut] > > the string directly because the packet may contain NULL > characters and the > > sv_setpv will fail as a result. > > IIRC there's always sv_setpvn for that. > > -- > Vivek >
